Skip to content

Commit

Permalink
- Updates due to printing mosfile output to stdout directly
Browse files Browse the repository at this point in the history
  - dynload.c - flush output buffers function call for deterministic behaviour
  - Testsuite updated - testcases that used stdout now prints lines in different positions than earlier


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5617 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jun 1, 2010
1 parent e1f5151 commit fccbe6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/runtime/dynload.c
Expand Up @@ -851,6 +851,8 @@ static int execute_function(void *in_arg, void **out_arg,
if (debugFlag) { fprintf(stderr, "calling the function\n"); fflush(stderr); }
/* call our function pointer! */
retval = func(arglst, &retarg);
/* Flush all buffers for deterministic behaviour; in particular for the testsuite */
fflush(NULL);

/* free the type description for the input parameters! */
arg = arglst;
Expand Down

0 comments on commit fccbe6a

Please sign in to comment.