shell32/tests: Fix a test failure on NT4.
This commit is contained in:
parent
e8993f3ddd
commit
6a6c8e3ee2
|
@ -1728,9 +1728,12 @@ static void test_copy(void)
|
||||||
shfo.pTo = "\0";
|
shfo.pTo = "\0";
|
||||||
shfo.fFlags = FOF_NOCONFIRMATION | FOF_SILENT | FOF_NOERRORUI;
|
shfo.fFlags = FOF_NOCONFIRMATION | FOF_SILENT | FOF_NOERRORUI;
|
||||||
retval = SHFileOperation(&shfo);
|
retval = SHFileOperation(&shfo);
|
||||||
ok(retval == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", retval);
|
ok(retval == ERROR_SUCCESS ||
|
||||||
ok(DeleteFileA("dir\\abcdefgh.abc"), "Expected file to exist\n");
|
broken(retval == DE_OPCANCELLED), /* NT4 */
|
||||||
|
"Expected ERROR_SUCCESS, got %d\n", retval);
|
||||||
|
if (retval == ERROR_SUCCESS)
|
||||||
ok(DeleteFileA("abcdefgh.abc"), "Expected file to exist\n");
|
ok(DeleteFileA("abcdefgh.abc"), "Expected file to exist\n");
|
||||||
|
ok(DeleteFileA("dir\\abcdefgh.abc"), "Expected file to exist\n");
|
||||||
ok(RemoveDirectoryA("dir"), "Expected dir to exist\n");
|
ok(RemoveDirectoryA("dir"), "Expected dir to exist\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue