Commit 4de19cff authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard

winetest: Make the wrapper immune to Ctrl-C.

parent 7f3439d5
......@@ -650,6 +650,16 @@ run_tests (char *logname)
return logname;
}
static BOOL WINAPI ctrl_handler(DWORD ctrl_type)
{
if (ctrl_type == CTRL_C_EVENT) {
printf("Ignoring Ctrl-C, use Ctrl-Break if you really want to terminate\n");
return TRUE;
}
return FALSE;
}
static void
usage (void)
{
......@@ -750,6 +760,8 @@ int main( int argc, char *argv[] )
if (!running_on_visible_desktop ())
report (R_FATAL, "Tests must be run on a visible desktop");
SetConsoleCtrlHandler(ctrl_handler, TRUE);
if (reset_env)
{
SetEnvironmentVariableA( "WINETEST_PLATFORM", running_under_wine () ? "wine" : "windows" );
......
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