Module: xenomai-jki
Branch: for-forge
Commit: 296ca080cf49f6212ff6bdfe4153358380b531f7
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=296ca080cf49f6212ff6bdfe4153358380b531f7

Author: Jan Kiszka <jan.kis...@siemens.com>
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 <jan.kis...@siemens.com>

---

 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
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to