Skip to content

Commit

Permalink
- Made the bootstrapped testsuite more deterministic
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9475 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jul 14, 2011
1 parent b882cdc commit 09c169c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/runtime/Dynload.cpp
Expand Up @@ -199,6 +199,7 @@ static int execute_function(void *in_arg, void **out_arg,

if (debugFlag) { fprintf(stderr, "calling the function\n"); fflush(stderr); }

fflush(stdout);
/* call our function pointer! */
try { /* Don't let external C functions throwing C++ exceptions kill OMC! */
retval = func(arglst, &retarg);
Expand Down
3 changes: 3 additions & 0 deletions Compiler/susan_codegen/SimCode/SimCodeC.tpl
Expand Up @@ -2807,6 +2807,8 @@ case FUNCTION(__) then
<%if outVars then "out = "%>_<%fname%>(<%functionArguments |> var => funArgName(var) ;separator=", "%>);
MMC_CATCH_TOP(return 1)
<%if outVars then (outVars |> var hasindex i1 fromindex 1 => writeOutVar(var, i1) ;separator="\n") else "write_noretcall(outVar);"%>
fflush(NULL);
return 0;
}
>>
Expand Down Expand Up @@ -4809,6 +4811,7 @@ case rel as RELATION(__) then
case NEQUAL(ty = ET_ENUMERATION(__)) then '(<%e1%> != <%e2%>)'

else "daeExpRelation:ERR"

end daeExpRelation;


Expand Down

0 comments on commit 09c169c

Please sign in to comment.