Changeset 47f3ecb in OpenModelica


Ignore:
Timestamp:
2018-08-10T07:53:58+02:00 (6 years ago)
Author:
hudson <openmodelica@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
4182336
Parents:
8423437
git-author:
Martin Sjölund <martin.sjolund@…> (08/10/18 07:53:58)
git-committer:
hudson <openmodelica@…> (08/10/18 07:53:58)
Message:

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]:

  • OpenModelica/OMCompiler#2598
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Examples/ComplianceSuite.py

    r6bfa734 r47f3ecb  
    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"], '')
Note: See TracChangeset for help on using the changeset viewer.