test: improve filesystem tests

- Add a final check to see whether the fs daemon is still there.
- Other misc updates.
This commit is contained in:
CismonX 2025-04-07 19:32:44 +08:00
parent 565063ee9b
commit 9c0d5fb337
No known key found for this signature in database
GPG key ID: 3094873E29A482FB
3 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ do_check_fs_regrw (
#ifndef O_DIRECT #ifndef O_DIRECT
# define O_DIRECT 0 # define O_DIRECT 0
#endif #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); ASSERT_NE(-1, fd);
struct stat stat_buf; struct stat stat_buf;

View file

@ -19,7 +19,6 @@ ATX_CHECK_FS_NEW_ANY([file_max=524288], [
echo "prng seed: $seed" echo "prng seed: $seed"
ATX_RUN([ ATX_RUN([
touch $name
check-fs regrw -n 524288 -s "$seed" $name check-fs regrw -n 524288 -s "$seed" $name
]) ])
]) ])

View file

@ -139,6 +139,7 @@ m4_define([ATX_CHECK_FS], [
fi fi
done done
$6 $6
ATX_RUN_ONE([check-fs ismount "$4"])
], [ ], [
umount "$4" umount "$4"
]) ])