Commit 7bc46c15 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winetest: Flush the report file to disk between each test.

Should Windows crash, this makes it easier to know which test is responsible. Signed-off-by: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d9610706
...@@ -626,6 +626,10 @@ run_ex (char *cmd, HANDLE out_file, const char *tempdir, DWORD ms) ...@@ -626,6 +626,10 @@ run_ex (char *cmd, HANDLE out_file, const char *tempdir, DWORD ms)
PROCESS_INFORMATION pi; PROCESS_INFORMATION pi;
DWORD wait, status; DWORD wait, status;
/* Flush to disk so we know which test caused Windows to crash if it does */
if (out_file)
FlushFileBuffers(out_file);
GetStartupInfoA (&si); GetStartupInfoA (&si);
si.dwFlags = STARTF_USESTDHANDLES; si.dwFlags = STARTF_USESTDHANDLES;
si.hStdInput = GetStdHandle( STD_INPUT_HANDLE ); si.hStdInput = GetStdHandle( STD_INPUT_HANDLE );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment