diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-06-26 12:05:21 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-06-26 12:30:50 +0200 |
commit | 5c0202af4b3d588c04bcec7baf05706b21cd7416 (patch) | |
tree | b716158811f494de86285576f5708192045d79b8 /support/support_test_main.c | |
parent | c402355dfa7807b8e0adb27c009135a7e2b9f1b0 (diff) | |
download | glibc-5c0202af4b3d588c04bcec7baf05706b21cd7416.tar glibc-5c0202af4b3d588c04bcec7baf05706b21cd7416.tar.gz glibc-5c0202af4b3d588c04bcec7baf05706b21cd7416.tar.bz2 glibc-5c0202af4b3d588c04bcec7baf05706b21cd7416.zip |
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.
Diffstat (limited to 'support/support_test_main.c')
-rw-r--r-- | support/support_test_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/support/support_test_main.c b/support/support_test_main.c index 396385729b..23429779ac 100644 --- a/support/support_test_main.c +++ b/support/support_test_main.c @@ -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) |