Explicitly disable buffering for stderr in tests
This commit is contained in:
parent
fb424fbba2
commit
a0771d15e6
@ -5174,6 +5174,9 @@ int main(int argc, char **argv) {
|
|||||||
* diagnostic information. Happens right at the start of main because
|
* diagnostic information. Happens right at the start of main because
|
||||||
* setbuf must be used before any other operation on the stream. */
|
* setbuf must be used before any other operation on the stream. */
|
||||||
setbuf(stdout, NULL);
|
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 */
|
/* find iteration count */
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user