From 9d220d122288fd446cda3d4b2a9b1c00c62e9ac8 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 19 Feb 2016 10:44:45 +1100 Subject: [PATCH] generic: add _require_odirect to generic/113 and generic/214 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 Signed-off-by: Theodore Ts'o Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- tests/generic/113 | 1 + tests/generic/214 | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/generic/113 b/tests/generic/113 index 7208fa29..54d61918 100755 --- a/tests/generic/113 +++ b/tests/generic/113 @@ -77,6 +77,7 @@ _do_test() _supported_fs generic _supported_os Linux _require_test +_require_odirect [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform" diff --git a/tests/generic/214 b/tests/generic/214 index dff267e8..78380471 100755 --- a/tests/generic/214 +++ b/tests/generic/214 @@ -55,6 +55,7 @@ rm -f $seqres.full rm -f $TEST_DIR/ouch* _require_xfs_io_command "falloc" +_require_odirect # Ok, off we go. -- 2.39.5