[PATCH 18/33] generic/338: skip test if we can't mount with strictatime

Darrick J. Wong
2025-10-29T01:25:07Z

If we can't mount a filesystem with strictatime, skip this test.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
tests/generic/338 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/338 b/tests/generic/338
index d138c023960f8d..450f34889b96ef 100755
--- a/tests/generic/338
+++ b/tests/generic/338
@@ -36,7 +36,7 @@ _dmerror_init

# Use strictatime mount option here to force atime updates, which could help
# trigger the NULL pointer dereference on ext4 more easily
-_dmerror_mount "-o strictatime"
+_dmerror_mount "-o strictatime" || _notrun "could not mount with strictatime"
_dmerror_load_error_table

# flush dmerror block device buffers and drop all caches, force reading from