mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-07-23 17:48:52 +00:00
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:
parent
565063ee9b
commit
9c0d5fb337
3 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
])
|
||||
])
|
||||
|
|
|
@ -139,6 +139,7 @@ m4_define([ATX_CHECK_FS], [
|
|||
fi
|
||||
done
|
||||
$6
|
||||
ATX_RUN_ONE([check-fs ismount "$4"])
|
||||
], [
|
||||
umount "$4"
|
||||
])
|
||||
|
|
Loading…
Add table
Reference in a new issue