Gracefully fail aio tests if they weren't built

configure & make succeeds w/o aio headers or libs,
so tests should handle that.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Eric Sandeen
2009-06-10 15:04:52 -05:00
parent b29f981f0c
commit 4e9072472f
6 changed files with 18 additions and 6 deletions
+3 -1
View File
@@ -47,7 +47,9 @@ _supported_fs generic
_supported_os Linux
rm -f $TEST_DIR/aio-testfile
src/aio-dio-regress/aio-dio-subblock-eof-read $TEST_DIR/aio-testfile 2>&1
AIO_TEST=src/aio-dio-regress/aio-dio-subblock-eof-read
[ -x $AIO_TEST ] || _notrun "$AIO_TEST not built"
$AIO_TEST $TEST_DIR/aio-testfile 2>&1
status=$?
rm -f $TEST_DIR/aio-testfile