regress: add EVENT_NO_FILE_BUFFERING, to disable buffering for stdout/stderr

Useful for win32

(cherry picked from commit b2d4fb4176c645b45b8514e4a5a942228ea4e6a9)
This commit is contained in:
Azat Khuzhin 2018-11-13 09:25:13 +03:00 committed by Azat Khuzhin
parent ca69a10f4c
commit 91bb15e63e
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View File

@ -455,6 +455,11 @@ main(int argc, const char **argv)
evutil_weakrand_seed_(&test_weakrand_state, 0);
if (getenv("EVENT_NO_FILE_BUFFERING")) {
setbuf(stdout, NULL);
setbuf(stderr, NULL);
}
if (tinytest_main(argc,argv,testgroups))
return 1;