Skip to content

Commit

Permalink
Merge pull request #985 from johnbrvc/i984_val_stdout_stderr_fix
Browse files Browse the repository at this point in the history
i_984 Make sure validate stdout/stderr buffers are flushed
  • Loading branch information
johnbrvc authored Jul 2, 2024
2 parents b536dcf + 536c5c8 commit b88e08a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/edu/csus/ecs/pc2/core/execute/Executable.java
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,9 @@ protected boolean validateProgram(int dataSetNumber) {


executionData.setvalidateTimeMS(System.currentTimeMillis() - startTime);
// be sure to flush before serializing.
stdoutlog.flush();
stderrlog.flush();
executionData.setValidationStdout(new SerializedFile(prefixExecuteDirname(VALIDATOR_STDOUT_FILENAME)));
executionData.setValidationStderr(new SerializedFile(prefixExecuteDirname(VALIDATOR_STDERR_FILENAME)));

Expand Down

0 comments on commit b88e08a

Please sign in to comment.