GUACAMOLE-662: Force line-buffered output.

This commit is contained in:
Michael Jumper 2018-11-13 20:34:29 -08:00
parent ca4009c982
commit 877bf59cb6

View File

@ -177,6 +177,11 @@ while ((my $suite_name, my $test_names) = each (%test_suites)) {
print <<"END";
/* Force line-buffered output to ensure log messages are visible even if
* a test crashes */
setvbuf(stdout, NULL, _IOLBF, 0);
setvbuf(stderr, NULL, _IOLBF, 0);
/* Write TAP header */
printf("1..$num_tests\\n");