From 9bbc100c5caee30eb5f5aef3809cda90bb7e5821 Mon Sep 17 00:00:00 2001 From: verhaegs Date: Thu, 3 Nov 2011 21:14:25 +0000 Subject: [PATCH] tests/clib/flock.c: Close file opened O_CREAT before trying to open it O_RDONLY git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@42258 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- test/clib/flock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/clib/flock.c b/test/clib/flock.c index 317d748d80..5ebcac75d0 100644 --- a/test/clib/flock.c +++ b/test/clib/flock.c @@ -72,6 +72,8 @@ int main() TEST((flock(fd, LOCK_EX) == 0)); TEST((flock(fd, LOCK_UN) == 0)); + close(fd); + /* Create NPROCS processes increasing counter ITERATIONS times in an ugly way */ int counter = 0; -- 2.11.4.GIT