Module: xenomai-2.6
Branch: master
Commit: 5193a45d23735396c83e30c21249aeab80fe8e1d
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=5193a45d23735396c83e30c21249aeab80fe8e1d

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Mon Jun 20 15:04:05 2016 +0200

testsuite/cond-torture: increase sleep duration

The current sleep duration was causing race conditions on slow
platforms.

---

 src/testsuite/unit/cond-torture.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/testsuite/unit/cond-torture.c 
b/src/testsuite/unit/cond-torture.c
index e08515c..f7eb9f7 100644
--- a/src/testsuite/unit/cond-torture.c
+++ b/src/testsuite/unit/cond-torture.c
@@ -283,7 +283,7 @@ void simple_condwait(void)
        check("mutex_lock", mutex_lock(&mutex), 0);
        check("thread_spawn",
              thread_spawn(&cond_signaler_tid, 2, cond_signaler, &cm), 0);
-       thread_msleep(11);
+       thread_msleep(20);
 
        start = rt_timer_tsc();
        check("cond_wait", cond_wait(&cond, &mutex, XN_INFINITE), 0);
@@ -388,7 +388,7 @@ void sig_norestart_condwait(void)
        check("mutex_lock", mutex_lock(&mutex), 0);
        check("thread_spawn",
              thread_spawn(&cond_killer_tid, 2, cond_killer, &cm), 0);
-       thread_msleep(11);
+       thread_msleep(20);
 
        start = rt_timer_tsc();
        sig_seen = 0;
@@ -435,7 +435,7 @@ void sig_restart_condwait(void)
        check("mutex_lock", mutex_lock(&mutex), 0);
        check("thread_spawn",
              thread_spawn(&cond_killer_tid, 2, cond_killer, &cm), 0);
-       thread_msleep(11);
+       thread_msleep(20);
 
        start = rt_timer_tsc();
        sig_seen = 0;
@@ -498,7 +498,7 @@ void sig_norestart_condwait_mutex(void)
        check("mutex_lock", mutex_lock(&mutex), 0);
        check("thread_spawn",
              thread_spawn(&mutex_killer_tid, 2, mutex_killer, &cm), 0);
-       thread_msleep(11);
+       thread_msleep(20);
 
        sig_seen = 0;
        start = rt_timer_tsc();
@@ -538,7 +538,7 @@ void sig_restart_condwait_mutex(void)
        check("mutex_lock", mutex_lock(&mutex), 0);
        check("thread_spawn",
              thread_spawn(&mutex_killer_tid, 2, mutex_killer, &cm), 0);
-       thread_msleep(11);
+       thread_msleep(20);
 
        sig_seen = 0;
        start = rt_timer_tsc();
@@ -594,7 +594,7 @@ void sig_norestart_double(void)
        check("mutex_lock", mutex_lock(&mutex), 0);
        check("thread_spawn",
              thread_spawn(&double_killer_tid, 2, double_killer, &cm), 0);
-       thread_msleep(11);
+       thread_msleep(20);
 
        sig_seen = 0;
        start = rt_timer_tsc();
@@ -634,7 +634,7 @@ void sig_restart_double(void)
        check("mutex_lock", mutex_lock(&mutex), 0);
        check("thread_spawn",
              thread_spawn(&double_killer_tid, 2, double_killer, &cm), 0);
-       thread_msleep(11);
+       thread_msleep(20);
 
        sig_seen = 0;
        start = rt_timer_tsc();
@@ -694,7 +694,7 @@ void cond_destroy_whilewait(void)
        check("mutex_lock", mutex_lock(&mutex), 0);
        check("thread_spawn",
              thread_spawn(&cond_destroyer_tid, 2, cond_destroyer, &cm), 0);
-       thread_msleep(11);
+       thread_msleep(20);
 
        start = rt_timer_tsc();
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to