mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
support: Add TEST_NO_SETVBUF
This is sometimes needed for testing stdio streams, where the setvbuf call in the test driver could interfere with the test.
This commit is contained in:
@@ -270,7 +270,8 @@ support_test_main (int argc, char **argv, const struct test_config *config)
|
||||
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)
|
||||
|
Reference in New Issue
Block a user