generic: add _require_odirect to generic/113 and generic/214
authorTheodore Ts'o <tytso@mit.edu>
Thu, 18 Feb 2016 23:44:45 +0000 (10:44 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Feb 2016 23:44:45 +0000 (10:44 +1100)
generic/113 and generic/214 both use O_DIRECT at some stage in their
tests, so check O_DIRECT support before running them.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/113
tests/generic/214

index 7208fa29c0fc3c81a35ded7512b04880f992c55f..54d61918d1a2ae3cb24a527197f16cc754a1a92f 100755 (executable)
@@ -77,6 +77,7 @@ _do_test()
 _supported_fs generic
 _supported_os Linux
 _require_test
 _supported_fs generic
 _supported_os Linux
 _require_test
+_require_odirect
 
 [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform"
 
 
 [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform"
 
index dff267e869c994c73997ef92ff3a404c4c4c1884..78380471e5517af3b06f5d93c1128a93653e30fa 100755 (executable)
@@ -55,6 +55,7 @@ rm -f $seqres.full
 rm -f $TEST_DIR/ouch*
 
 _require_xfs_io_command "falloc"
 rm -f $TEST_DIR/ouch*
 
 _require_xfs_io_command "falloc"
+_require_odirect
 
 # Ok, off we go.
 
 
 # Ok, off we go.