]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Cleanup and do minor refactoring before converting testcases to ATF
authorEnji Cooper <ngie@FreeBSD.org>
Tue, 31 Mar 2015 06:43:55 +0000 (06:43 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Tue, 31 Mar 2015 06:43:55 +0000 (06:43 +0000)
commit76cbe329d67601f317d1cb42d6a8eec070ee2abf
tree47ed29900a32a7615a96453869e1f97a62b98e5b
parent58cb9ed9e617d8bd6c6e47516094441543aa45e9
Cleanup and do minor refactoring before converting testcases to ATF

- Convert errx(-1, ..) to errx(1, ..)
- Move the aio(4) checks to a single function (aio_available); use modfind(2)
  instead of depending on SIGSYS (doesn't work when aio(4) support is missing,
  not documented in the aio syscall manpages).
- Use aio_available liberally in the testcase functions
- Use mkstemp(3) + unlink(2) instead of mktemp(3)
- Fix some -Wunused warnings
- Bump WARNS to 6

MFC after: 1 week
Submitted by: mjohnston [*]
Sponsored by: EMC / Isilon Storage Division
tools/regression/aio/aiotest/Makefile
tools/regression/aio/aiotest/aiotest.c