mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
[lldb] Make IR interpreter timeout test more loose
This has failed once in a while on our Windows on Arm bot: https://lab.llvm.org/buildbot/#/builders/219/builds/4688 Traceback (most recent call last): File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\... self.assertGreaterEqual(duration_sec, 1) AssertionError: 0.9907491207122803 not greater than or equal to 1 We're not here to check that Python/the C++ lib/the OS implemented timers correctly, so accept anything 0.95 or greater.
This commit is contained in:
parent
f580901d5d
commit
91a0e832d4
@ -44,7 +44,8 @@ class IRInterpreterTestCase(TestBase):
|
||||
options.SetTimeoutInMicroSeconds(1000000)
|
||||
res, duration_sec = self.time_expression(inf_loop, options)
|
||||
self.assertIn(timeout_error, str(res.GetError()))
|
||||
self.assertGreaterEqual(duration_sec, 1)
|
||||
# Anything within 5% of 1s is fine, to account for machine differences.
|
||||
self.assertGreaterEqual(duration_sec, 0.95)
|
||||
self.assertLess(duration_sec, 30)
|
||||
|
||||
def test_interpreter_interrupt(self):
|
||||
|
Loading…
Reference in New Issue
Block a user