On Friday 20 July 2012 14:05:48 Jonathan Duke Leto wrote:

> I dusted off my darwin/ppc box and the latest commit on the threads
> branch still hangs on t/pmc/nci.t .
> 
> If anybody has any ideas/patches that they would like me to try,
> please let me know.

Can you please try the attached patch? It just increases the timeouts in some 
tests. The original uses 10ms sleeps which is very little considering that for 
example Windows gives us only 100ms resolution timers. If this doesn't help, 
it's probably a problem with the timer thread.

Stefan
diff --git a/t/pmc/nci.t b/t/pmc/nci.t
index 80a201f..250c1d2 100644
--- a/t/pmc/nci.t
+++ b/t/pmc/nci.t
@@ -1332,7 +1332,7 @@ OUTPUT
   set I20, 0
 loop:
   inc I20
-  sleep 0.01
+  sleep 0.2
   get_global P11, "cb_done"
   if P11, fin
   gt I20, 10, err
@@ -1402,7 +1402,7 @@ OUTPUT
     sleep_cnt = 0
 LOOP:
     sleep_cnt += 1
-    sleep 0.01
+    sleep 0.2
     .local pmc callback_has_run
     callback_has_run = get_global "cb_done"
     if callback_has_run goto FINISHED
@@ -1465,7 +1465,7 @@ OUTPUT
   set I20, 0
 loop:
   inc I20
-  sleep 0.01
+  sleep 0.2
   get_global P11, "cb_done"
   if P11, fin
   gt I20, 10, err
@@ -1539,7 +1539,7 @@ OUTPUT
     sleep_cnt = 0
 LOOP:
     sleep_cnt += 1
-    sleep 0.01
+    sleep 0.2
     .local pmc callback_has_run
     callback_has_run = get_global "cb_done"
     if callback_has_run goto FINISHED
@@ -1613,7 +1613,7 @@ OUTPUT
   set I20, 0
 loop:
   inc I20
-  sleep 0.01
+  sleep 0.2
   get_global P11, "cb_done"
   if P11, fin
   gt I20, 10, err
@@ -1672,7 +1672,7 @@ OUTPUT
   set I20, 0
 loop:
   inc I20
-  sleep 0.01
+  sleep 0.2
   get_global P11, "cb_done"
   if P11, fin
   gt I20, 10, err
@@ -1743,7 +1743,7 @@ OUTPUT
     sleep_cnt = 0
 LOOP:
     sleep_cnt += 1
-    sleep 0.01
+    sleep 0.2
     .local pmc callback_has_run
     callback_has_run = get_global "cb_done"
     if callback_has_run goto FINISHED
@@ -1820,7 +1820,7 @@ OUTPUT
     sleep_cnt = 0
 LOOP:
     sleep_cnt += 1
-    sleep 0.01
+    sleep 0.2
     .local pmc callback_has_run
     callback_has_run = get_global "cb_done"
     if callback_has_run goto FINISHED
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to