mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: add aiodio helper functions
For 198, 239 and 240, use _require_aiodio to fail gracefully if required program was not built. For 207-212, use _run_aiodio that includes _require_aiodio and kicks specified aio-dio program, to make code expressly simple. Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
b235a158b1
commit
c61d37c072
@@ -46,11 +46,6 @@ _cleanup()
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
|
||||
rm -f $TEST_DIR/aio-testfile
|
||||
AIO_TEST=src/aio-dio-regress/aio-free-ring-with-bogus-nr-pages
|
||||
[ -x $AIO_TEST ] || _notrun "$AIO_TEST not built"
|
||||
$AIO_TEST $TEST_DIR/aio-testfile 2>&1
|
||||
status=$?
|
||||
rm -f $TEST_DIR/aio-testfile
|
||||
_run_aiodio aio-free-ring-with-bogus-nr-pages
|
||||
|
||||
exit $status
|
||||
|
||||
Reference in New Issue
Block a user