mirror of
https://github.com/reactos/reactos.git
synced 2026-05-26 10:53:56 +08: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:
committed by
GitHub
parent
c9842e5aad
commit
b86422cd4b
@@ -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