Explicitly disable buffering for stderr in tests

This commit is contained in:
Jonas Nick 2019-11-25 10:17:02 +00:00
parent fb424fbba2
commit a0771d15e6

View File

@ -5174,6 +5174,9 @@ int main(int argc, char **argv) {
* diagnostic information. Happens right at the start of main because
* setbuf must be used before any other operation on the stream. */
setbuf(stdout, NULL);
/* Also disable buffering for stderr because it's not guaranteed that it's
* unbuffered on all systems. */
setbuf(stderr, NULL);
/* find iteration count */
if (argc > 1) {