Changeset 9489b472 in OpenModelica


Ignore:
Timestamp:
2018-08-08T12:51:32+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:
fabb954
Parents:
6bfa734
git-author:
Martin Sjölund <martin.sjolund@…> (08/08/18 12:51:32)
git-committer:
hudson <openmodelica@…> (08/08/18 12:51:32)
Message:

Handle stack overflow for compliance suite test

Belonging to [master]:

  • OpenModelica/OMCompiler#2595
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Examples/ComplianceSuite.mos

    r6bfa734 r9489b472  
    6363end fixName;
    6464\");
    65 resultFile := rec.resultFile;
     65if length(err) >= 21 then
     66  print(substring(err, 1, 21));
     67  b := \"Error: Stack overflow\" <> substring(err, 1, 21);
     68else
     69  b := true;
     70end if;
     71resultFile := \"\";
     72if b then
     73  resultFile := rec.resultFile;
     74end if;
    6675shouldPass := OpenModelica.Scripting.getBooleanClassAnnotation("+OpenModelica.Scripting.typeNameString(cl)+",__ModelicaAssociation.TestCase.shouldPass);
    6776success := if shouldPass then resultFile<>\"\" else resultFile==\"\";
    68 messages := rec.messages;
     77messages := \"\";
     78if b then
     79  messages := rec.messages;
     80end if;
    6981messages := messages + err;
    7082messages := messages + (if not success and not shouldPass /* This is correct; try to figure out why (hint: success is a poor name) */ then \"\nSucceeded, but expected failure\" else \"\");
Note: See TracChangeset for help on using the changeset viewer.