summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-02-04 19:23:25 -0500
committerDavid Robillard <d@drobilla.net>2023-02-04 19:23:25 -0500
commitc4b3814edad510c6c124089822bd5506f9334411 (patch)
tree91285034689ac547c455cd479c830e1a246067ae /test
parent5d4a33443d8652f26ab3323a835726e7bd99bdd8 (diff)
downloadzix-c4b3814edad510c6c124089822bd5506f9334411.tar.gz
zix-c4b3814edad510c6c124089822bd5506f9334411.tar.bz2
zix-c4b3814edad510c6c124089822bd5506f9334411.zip
Use a more realistic scenario for file locking test
Diffstat (limited to 'test')
-rw-r--r--test/test_filesystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_filesystem.c b/test/test_filesystem.c
index 75829ca..18a6efc 100644
--- a/test/test_filesystem.c
+++ b/test/test_filesystem.c
@@ -349,7 +349,7 @@ test_flock(void)
assert(file_path);
FILE* const f1 = fopen(file_path, "w");
- FILE* const f2 = fopen(file_path, "w");
+ FILE* const f2 = fopen(file_path, "a+");
assert(f1);
assert(f2);