Skip to content

Commit

Permalink
Tests: flush stderr before exit
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Jan 13, 2024
1 parent 314221d commit 5236a14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/testlo.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

#define TEST(cond) if (!(cond)) { fprintf(stderr, "FAILED " #cond \
" at %s:%d\n", __FILE__, __LINE__); \
fflush(stderr); \
exit(1); } \
else { printf("passed " #cond "\n"); }

Expand Down

0 comments on commit 5236a14

Please sign in to comment.