Fix thinko from 10dd5c05 - make sure we actually sleep
authorPeter Rabbitson <ribasushi@cpan.org>
Wed, 13 Apr 2016 17:43:30 +0000 (19:43 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Wed, 13 Apr 2016 17:43:30 +0000 (19:43 +0200)
commitef25a42942e8454e0285a9f42a567327fbd96496
treeaa4dbba0f2328aef028c9a4969baa4b0b4263b69
parent11f335cd8c3310770f6c8d0724a54dd528119734
Fix thinko from 10dd5c05 - make sure we actually sleep

Under very tight concurrency it is possible that the test will not be given
sufficient timeshare before the scheduled 'point in the future', which would
result in us asking Time::HiRes to sleep for a negative amount of time, which
it "helpfully" converts to an obnoxious exception.
t/50fork.t
t/51threads.t
t/51threadtxn.t
xt/extra/internals/ithread_stress.t