Skip to content

Commit 44588cc

Browse files
committed
use alarm to kill the test if infinite
1 parent 871ab7c commit 44588cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

simulation/modelica/nonlinear_system/problem2_symjac.mos

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// status: correct
33
// teardown_command: rm -f nonlinear_system.problem2* _nonlinear_system.problem2* output.log
44

5+
alarm(360);
56
loadFile("nlsTestPackage.mo"); getErrorString();
67
OpenModelica.Scripting.setCommandLineOptions("+tearingMethod=noTearing"); getErrorString();
78
OpenModelica.Scripting.setCommandLineOptions("+d=NLSanalyticJacobian"); getErrorString();
@@ -20,6 +21,7 @@ val(x[10],{0.0,1.0,2.0});
2021
val(y,{0.0,1.0,2.0});
2122

2223
// Result:
24+
// 0
2325
// true
2426
// ""
2527
// true

0 commit comments

Comments
 (0)