Module: xenomai-3
Branch: next
Commit: 817bc4862bfb6ce58a37e1ec66b84cfac816c49c

Author: Jan Kiszka <>
Date:   Fri Dec 12 20:10:41 2014 +0100

smokey/rtdm: Wait longer on deferred close

The deferred close test can fail as both the deferral as well as the
waiter use 300 ms as delay. If both events happens to coalesce into a
single one an the waiter is executed first, the test fails. Avoid this
by extending the waiting time slightly.

Signed-off-by: Jan Kiszka <>


 testsuite/smokey/rtdm/rtdm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/rtdm/rtdm.c b/testsuite/smokey/rtdm/rtdm.c
index f67cc95..cc85abb 100644
--- a/testsuite/smokey/rtdm/rtdm.c
+++ b/testsuite/smokey/rtdm/rtdm.c
@@ -97,7 +97,7 @@ static int run_rtdm(struct smokey_test *t, int argc, char 
*const argv[])
        check("open", open(devname, O_RDWR), -EBUSY);
        dev2 = check("open", open(devname2, O_RDWR), dev);
        check("close", close(dev2), 0);
-       usleep(300000);
+       usleep(301000);
        dev = check("open", open(devname, O_RDWR), dev);
        printf("Normal close\n");

Xenomai-git mailing list

Reply via email to