staticanalysis / data-race-test

Automatically exported from code.google.com/p/data-race-test
0 stars 0 forks source link

NegativeTests.WaitForMultipleObjectsWaitOneTest is flaky on Vista #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is happening on the Dr. Memory waterfall

http://build.chromium.org/p/client.drmemory/builders/win-vista_x64-drm/builds/95
3/steps/TSan%20tests_1/logs/stdio
[ RUN      ] NegativeTests.WaitForMultipleObjectsWaitOneTest
windows_tests.cc(162): error: Value of: ::WaitForMultipleObjects(2, handles, 0, 
1)
  Actual: 1
Expected: 258L
Which is: 258
[  FAILED  ] NegativeTests.WaitForMultipleObjectsWaitOneTest (1000 ms)

Original issue reported on code.google.com by timurrrr on 5 May 2011 at 4:01

GoogleCodeExporter commented 9 years ago
Should be fixed by r3477

Actual: 1 = WAIT_OBJECT_0 + 1
that means we were not timing out but rather we observed handles[1] to be fired.
handles[1] is associated with LongWorker thread that did "Sleep(1) + long loop".
I've increased the Sleep time to 5ms in r3477.

Original comment by timurrrr on 26 May 2011 at 9:57