mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +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
@@ -108,23 +108,30 @@ TestCompareIDList(IShellFolder* psf)
|
||||
|
||||
compare(psf, dir3, desktop, S_LESSTHAN);
|
||||
compare(psf, desktop, dir3, S_GREATERTHAN);
|
||||
compare(psf, dir3, programs, S_GREATERTHAN);
|
||||
compare(psf, programs, dir3, S_LESSTHAN);
|
||||
if (!g_bVista) // Only Vista fails on a default install
|
||||
{
|
||||
compare(psf, dir3, programs, S_GREATERTHAN);
|
||||
compare(psf, programs, dir3, S_LESSTHAN);
|
||||
}
|
||||
compare(psf, dir3, dir3, S_EQUAL);
|
||||
|
||||
compare(psf, dir4, desktop, S_LESSTHAN);
|
||||
compare(psf, desktop, dir4, S_GREATERTHAN);
|
||||
compare(psf, dir4, programs, S_GREATERTHAN);
|
||||
compare(psf, programs, dir4, S_LESSTHAN);
|
||||
if (!g_bVista) // Only Vista fails on a default install
|
||||
{
|
||||
compare(psf, dir4, programs, S_GREATERTHAN);
|
||||
compare(psf, programs, dir4, S_LESSTHAN);
|
||||
}
|
||||
compare(psf, dir4, dir4, S_EQUAL);
|
||||
|
||||
// Now compare the paths against eachother.
|
||||
compare(psf, dir1, dir2, S_LESSTHAN);
|
||||
compare(psf, dir2, dir1, S_GREATERTHAN);
|
||||
|
||||
compare(psf, dir2, dir3, S_LESSTHAN);
|
||||
compare(psf, dir3, dir2, S_GREATERTHAN);
|
||||
|
||||
if (!g_bVista) // Only Vista fails on a default install
|
||||
{
|
||||
compare(psf, dir2, dir3, S_LESSTHAN);
|
||||
compare(psf, dir3, dir2, S_GREATERTHAN);
|
||||
}
|
||||
compare(psf, dir3, dir4, S_LESSTHAN);
|
||||
compare(psf, dir4, dir3, S_GREATERTHAN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user