mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user