mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[SHELL32_APITEST] Several fixes (#8266)
Fix the shell32 apitests so that they pass on Windows Server 2003 - Windows 10. Many of these fixes are for Vista+, but the most important fixes are for ShellExecCmdLine and FindExecutable which had issues closing windows after tests and deleting test files. Failing to delete these files breaks the other test (i.e. running ShellExecCmdLine would break FindExecutable and vis-versa.)
This commit is contained in:
@@ -34,10 +34,9 @@ static void TEST_GUIDFromStringA(void)
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
if (IsWindowsVistaOrGreater())
|
||||
ok_int(ret, FALSE);
|
||||
else
|
||||
ok_int(ret, 0xDEADBEEF);
|
||||
ok(ret == FALSE || // Win8+
|
||||
ret == (int)(0xDEADBEEF), // Win2k3-Win7
|
||||
"Wrong value for ret (0x%X)\n", ret);
|
||||
ok_int(memcmp(&guid, &invalid_guid, sizeof(guid)) == 0, TRUE);
|
||||
|
||||
guid = invalid_guid;
|
||||
@@ -81,10 +80,9 @@ static void TEST_GUIDFromStringW(void)
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
if (IsWindowsVistaOrGreater())
|
||||
ok_int(ret, 0xDEADBEEF);
|
||||
else
|
||||
ok_int(ret, FALSE);
|
||||
ok(ret == (int)(0xDEADBEEF) || // Win8+
|
||||
ret == FALSE, // Win2k3-Win7
|
||||
"Wrong value for ret (0x%X)\n", ret);
|
||||
ok_int(memcmp(&guid, &invalid_guid, sizeof(guid)) == 0, TRUE);
|
||||
|
||||
guid = invalid_guid;
|
||||
|
||||
Reference in New Issue
Block a user