Skip to content

Commit

Permalink
Fix for compliance suite xml
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17459 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 1, 2013
1 parent 30d77f8 commit ae16cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/ComplianceSuite.mos
Expand Up @@ -56,7 +56,7 @@ shouldPass := OpenModelica.Scripting.getBooleanClassAnnotation("+OpenModelica.Sc
success := if shouldPass then resultFile<>\"\" else resultFile==\"\";
messages := rec.messages;
messages := messages + err;
messages := messages + (if success and not shouldPass then \"\nSucceeded, but expected failure\" else \"\");
messages := messages + (if not success and not shouldPass then \"\nSucceeded, but expected failure\" else \"\");
messages := OpenModelica.Scripting.escapeXML(firstPart(messages));
errorType := if shouldPass then \"failed\" else \"expected failure\";
writeFile(\""+fixName(typeNameString(cl))+".res\",\"<testcase name=\\\""+fixName(last(OpenModelica.Scripting.typeNameStrings(cl)))+"\\\">\"+(if not success then \"<error type=\\\"\"+errorType+\"\\\" message=\\\"\"+messages+\"\\\"/>\" else \"\")+\"</testcase>\n\");
Expand Down

0 comments on commit ae16cc1

Please sign in to comment.