Fix PAL test threading/WaitForMultipleObjectsEx/test2 (#43356)
authorJan Vorlicek <janvorli@microsoft.com>
Tue, 13 Oct 2020 18:21:57 +0000 (20:21 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Oct 2020 18:21:57 +0000 (20:21 +0200)
commit44fe31587e4e618aed3d0898dc379f8a3b4fb5fc
treec9c2713be134de21d4051e210a13c6ade90c826e
parent40fa7236027026edb65ebe38b2413ac8e8980bf4
Fix PAL test threading/WaitForMultipleObjectsEx/test2 (#43356)

This test was failing intermittently in the CI and I've been able
to reproduce the failure locally too in about 1 out of 2000 runs.
The problem was an incorrectly reverse subtraction in a condition
checking if the time after which a wait for interrupted by
APC matched the expected time with some tolerance.
src/coreclr/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test2/test2.cpp