From c4b3814edad510c6c124089822bd5506f9334411 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Feb 2023 19:23:25 -0500 Subject: Use a more realistic scenario for file locking test --- test/test_filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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); -- cgit v1.2.1