Skip to content

Commit

Permalink
Merge pull request #26 from JCash/message-flush
Browse files Browse the repository at this point in the history
Added fflush to prevent output to come out of order
  • Loading branch information
JCash authored Apr 3, 2021
2 parents 9bd8a9f + f49e413 commit d3403f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jc_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Made sure to compile with highest warning/error levels possible
*
* HISTORY:
* 0.8 2021-04-03 Added fflush to logging to prevent test output becoming out of order
* 0.7 2021-02-07 Fixed null pointer warning on C++0x and above
* Test filtering now works on parameterized tests
* 0.6 2020-03-12 Fixed bootstrap issue w/static initializers
Expand Down Expand Up @@ -1170,6 +1171,7 @@ void jc_test_logf(const jc_test_fixture* fixture, const jc_test_entry* test, con
}
buffer[sizeof(buffer)-1] = 0;
printf("%s", buffer);
fflush(stdout);
}

int jc_test_cmp_array(const uint8_t* a, const uint8_t* b, size_t len, size_t typesize, int valuetype, const char* exprA, const char* exprB) {
Expand Down

0 comments on commit d3403f1

Please sign in to comment.