shell32/tests: Fix the last test failure on Win9x.
authorPaul Vriens <Paul.Vriens.Wine@gmail.com>
Thu, 8 Jan 2009 16:09:44 +0000 (17:09 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 9 Jan 2009 13:18:03 +0000 (14:18 +0100)
dlls/shell32/tests/shlfileop.c

index 38caaf3c8302c4d8e7a298c5936c0fe55ad67114..d3e81a843dff08e5b0352ccd12c7920abeb70014 100644 (file)
@@ -561,7 +561,9 @@ static void test_delete(void)
     shfo.pFrom = "test1.txt\0";
     shfo.wFunc = 0;
     ret = SHFileOperation(&shfo);
-    ok(ret == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", ret);
+    ok(ret == ERROR_INVALID_PARAMETER ||
+       broken(ret == ERROR_SUCCESS), /* Win9x, NT4 */
+       "Expected ERROR_INVALID_PARAMETER, got %d\n", ret);
     ok(file_exists("test1.txt"), "Expected test1.txt to exist\n");
 
     /* try an invalid list, only one null terminator */