parrot/parrot — Issue #730: t/pmc/nci.t sub-test 'nci_cb_D4 - synchronous callbacks' is timing / speed-dependent
Author: he32
Created: 2012-03-06 08:53:37+00:00
State: open

It appears that the test labeled 'nci_cb_D4 - synchronous callbacks' in t/pmc/nci.t in Parrot 3.10.0 is dependent on the speed of the CPU the test is performed on. On my lowly 1GHz P3 system, this test failed, because the conversion to a synchronous callback happened too early to get the expected result. Doubling the time fixed it for me,
but we're not in a hurry, so I suggest this change instead, multiplying the time with 20x:

--- t/pmc/nci.t.orig 2012-03-06 08:42:14.000000000 +0000
+++ t/pmc/nci.t
@@ -1917,7 +1917,7 @@ OUTPUT

# Need to force reschedule to see async callbacks.
# Chandon TODO: Is this a bug?
- sleep 0.001
+ sleep 0.02

# reset int_cb_D4 to 1
int_cb_D4[0] = 1

I have not yet checked to see if the same issue exists in newer versions of Parrot.