Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 47f3ecb

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Allow the compliance suite tests to crash
If a test always crashes or fails, we can still test for this behaviour even if it is a really bad result. Belonging to [master]: - #2598
1 parent 8423437 commit 47f3ecb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Examples/ComplianceSuite.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ def readTest(f, expectedFailures):
1919
raise
2020

2121
if "killed" in res:
22-
tc = TestCase(name, cl, 0, '', '')
23-
tc.add_error_info('Killed or crashed')
24-
return (tc, tc, cl)
22+
tc1 = TestCase(name, cl, 0, '', '')
23+
tc2 = TestCase(name, cl, 0, '', '')
24+
if expectFail:
25+
tc1.add_skipped_info('Killed or crashed; expected failure')
26+
else:
27+
tc1.add_error_info('Killed or crashed')
28+
tc2.add_error_info('Killed or crashed')
29+
return (tc1, tc2, cl)
2530

2631
tc1 = TestCase(name, cl, res["time"], res["messages"], '')
2732
tc2 = TestCase(name, cl, res["time"], res["messages"], '')

0 commit comments

Comments
 (0)