From 9c0d5fb3375549cade3d24354d790507c5cd77c2 Mon Sep 17 00:00:00 2001 From: CismonX Date: Mon, 7 Apr 2025 19:32:44 +0800 Subject: [PATCH] test: improve filesystem tests - Add a final check to see whether the fs daemon is still there. - Other misc updates. --- tests/check_fs_regrw.c | 2 +- tests/fs_regrw.at | 1 - tests/testsuite.at | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/check_fs_regrw.c b/tests/check_fs_regrw.c index eece06c..762ca70 100644 --- a/tests/check_fs_regrw.c +++ b/tests/check_fs_regrw.c @@ -122,7 +122,7 @@ do_check_fs_regrw ( #ifndef O_DIRECT # define O_DIRECT 0 #endif - int fd = open(path, O_RDWR | O_TRUNC | O_DIRECT); + int fd = open(path, O_RDWR | O_CREAT | O_TRUNC | O_DIRECT); ASSERT_NE(-1, fd); struct stat stat_buf; diff --git a/tests/fs_regrw.at b/tests/fs_regrw.at index 85a73ac..6f5eba7 100644 --- a/tests/fs_regrw.at +++ b/tests/fs_regrw.at @@ -19,7 +19,6 @@ ATX_CHECK_FS_NEW_ANY([file_max=524288], [ echo "prng seed: $seed" ATX_RUN([ - touch $name check-fs regrw -n 524288 -s "$seed" $name ]) ]) diff --git a/tests/testsuite.at b/tests/testsuite.at index da087b7..5feb02f 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -139,6 +139,7 @@ m4_define([ATX_CHECK_FS], [ fi done $6 + ATX_RUN_ONE([check-fs ismount "$4"]) ], [ umount "$4" ])