]> Zhao Yanbai Git Server - minix.git/commitdiff
test56: fix race condition 49/2849/1
authorDavid van Moolenbroek <david@minix3.org>
Tue, 23 Sep 2014 11:49:47 +0000 (11:49 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 29 Sep 2014 16:16:36 +0000 (16:16 +0000)
Change-Id: I42bfe2b150e92f760794b4a03e62859c8bd7a992

minix/tests/test56.c

index da3efaff0913e03143c7529d987dda73f5646468..b3295ce603ab2eb9306762f2f59126e65527c0a9 100644 (file)
@@ -3236,6 +3236,8 @@ test_intr(void)
                /* No partial transfers should be happening. */
                check_select(client_sd, 0 /*read*/, 1 /*write*/, 0 /*block*/);
 
+               sleep(1);
+
                fcntl(client_sd, F_SETFL, fcntl(client_sd, F_GETFL) |
                    O_NONBLOCK);