From: Stefan Rentsch et14rest@gmail.com
Whatever blocks this specific test now gets more time for completion. --- dlls/shell32/tests/shlexec.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c index 030d06f71be..ec660dcc765 100644 --- a/dlls/shell32/tests/shlexec.c +++ b/dlls/shell32/tests/shlexec.c @@ -500,6 +500,7 @@ static int _todo_wait = 0; #define todo_wait for (_todo_wait = 1; _todo_wait; _todo_wait = 0)
static int bad_shellexecute = 0; +static DWORD wait_for_single_object_timeout = 5000;
static INT_PTR shell_execute_(const char* file, int line, LPCSTR verb, LPCSTR filename, LPCSTR parameters, LPCSTR directory) { @@ -530,7 +531,7 @@ static INT_PTR shell_execute_(const char* file, int line, LPCSTR verb, LPCSTR fi if (rc > 32) { int wait_rc; - wait_rc=WaitForSingleObject(hEvent, 5000); + wait_rc=WaitForSingleObject(hEvent, wait_for_single_object_timeout); if (wait_rc == WAIT_TIMEOUT) { HWND wnd = FindWindowA("#32770", "Windows"); @@ -1926,7 +1927,11 @@ static void test_urls(void)
{ /* Test against compatibility of long URI */ + DWORD old_timeout = wait_for_single_object_timeout; char long_uri[2100]; + + wait_for_single_object_timeout = 15000; /* due to Windows Defender, perhaps? */ + memset(long_uri, 0, sizeof(long_uri)); strcpy(long_uri, "shlproto://foo/bar"); memset(long_uri + strlen(long_uri), 'r', sizeof(long_uri) - strlen(long_uri) - 5); @@ -1938,6 +1943,8 @@ static void test_urls(void) okChildInt("argcA", 5); okChildString("argvA3", "URL"); todo_wine okChildString("argvA4", long_uri); + + wait_for_single_object_timeout = old_timeout; }
/* Check default verb detection */