Skip to content

Commit defb3cc

Browse files
authored
Merge pull request #7442 from stuartarchibald/wip/svml_test_diagnostics
Add some diagnostics to SVML test failures.
2 parents 861ce4d + feb4d3d commit defb3cc

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎numba/tests/test_svml.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,14 @@ def test_runner(self):
241241
p = ctx.Process(target=type(self).mp_runner, args=[testname, q])
242242
p.start()
243243
# timeout to avoid hanging and long enough to avoid bailing too early
244-
p.join(timeout=10)
245-
self.assertEqual(p.exitcode, 0, msg="process ended unexpectedly")
244+
term_or_timeout = p.join(timeout=10)
245+
exitcode = p.exitcode
246+
if term_or_timeout is None:
247+
if exitcode is None:
248+
self.fail("Process timed out.")
249+
elif exitcode < 0:
250+
self.fail(f"Process terminated with signal {-exitcode}.")
251+
self.assertEqual(exitcode, 0, msg="process ended unexpectedly")
246252
out = q.get()
247253
status = out['status']
248254
msg = out['msg']

0 commit comments

Comments
 (0)