Disable buffered stdout for test files
This commit is contained in:
parent
83aa7e5231
commit
a9ecc71ad6
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ int main(int argc, char **argv) {
|
||||||
uint16_t skips = 0;
|
uint16_t skips = 0;
|
||||||
uint16_t failures = 0;
|
uint16_t failures = 0;
|
||||||
|
|
||||||
|
setvbuf(stdout, NULL, _IOLBF, 128);
|
||||||
|
setvbuf(stderr, NULL, _IOLBF, 128);
|
||||||
|
|
||||||
for(DefinedTest *test = defined_tests; test->run != NULL; test++) {
|
for(DefinedTest *test = defined_tests; test->run != NULL; test++) {
|
||||||
TestResult result = test->run();
|
TestResult result = test->run();
|
||||||
switch (result.status) {
|
switch (result.status) {
|
||||||
|
|
Loading…
Reference in a new issue