+2018-06-26 Florian Weimer <fweimer@redhat.com>
+
+ * support/support_test_main.c (support_test_main): Only call
+ setvbuf if not disables.
+ * support/test-driver.c (main): Check TEST_NO_SETVBUF.
+ * support/test-driver.h (struct test_config): Add no_setvbuf member.
+
2018-06-26 Florian Weimer <fweimer@redhat.com>
[BZ #23313]
timeout = DEFAULT_TIMEOUT;
/* Make sure we see all message, even those on stdout. */
- setvbuf (stdout, NULL, _IONBF, 0);
+ if (!config->no_setvbuf)
+ setvbuf (stdout, NULL, _IONBF, 0);
/* Make sure temporary files are deleted. */
if (support_delete_temp_files != NULL)
test_config.no_mallopt = 1;
#endif
+#ifdef TEST_NO_SETVBUF
+ test_config.no_setvbuf = 1;
+#endif
+
#ifdef TIMEOUT
test_config.timeout = TIMEOUT;
#endif
int expected_status; /* Expected exit status. */
int expected_signal; /* If non-zero, expect termination by signal. */
char no_mallopt; /* Boolean flag to disable mallopt. */
+ char no_setvbuf; /* Boolean flag to disable setvbuf. */
const char *optstring; /* Short command line options. */
};