mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Disable buffering of stdout.
Both to avoid it getting lost in case of crashes, and to properly interleave test output and debug output in the log files.
This commit is contained in:
parent
ee867bd470
commit
4735ff48d1
Notes:
Alexandre Julliard
2024-02-15 23:59:45 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/653
@ -277,6 +277,7 @@ int main(int argc, char **argv)
|
|||||||
char *test_platform = getenv("VKD3D_TEST_PLATFORM");
|
char *test_platform = getenv("VKD3D_TEST_PLATFORM");
|
||||||
const char *bug = getenv("VKD3D_TEST_BUG");
|
const char *bug = getenv("VKD3D_TEST_BUG");
|
||||||
|
|
||||||
|
setvbuf(stdout, NULL, _IONBF, 0);
|
||||||
memset(&vkd3d_test_state, 0, sizeof(vkd3d_test_state));
|
memset(&vkd3d_test_state, 0, sizeof(vkd3d_test_state));
|
||||||
vkd3d_test_state.debug_level = debug_level ? atoi(debug_level) : 0;
|
vkd3d_test_state.debug_level = debug_level ? atoi(debug_level) : 0;
|
||||||
vkd3d_test_state.bug_enabled = bug ? atoi(bug) : true;
|
vkd3d_test_state.bug_enabled = bug ? atoi(bug) : true;
|
||||||
|
Loading…
Reference in New Issue
Block a user