[PATCH] msi/tests: Fix a test failure on Windows XP.

Sven Baars sven.wine at gmail.com
Sat Sep 28 04:49:46 CDT 2019


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
Using broken is not possible, because this package implements its own
test methods like ok and todo_wine, so I can't easily obtain the
platform from wine/test.h.

 dlls/msi/tests/custom.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/msi/tests/custom.c b/dlls/msi/tests/custom.c
index f994ad4c18..65e5ab6d07 100644
--- a/dlls/msi/tests/custom.c
+++ b/dlls/msi/tests/custom.c
@@ -1131,7 +1131,8 @@ static void test_invalid_functions(MSIHANDLE hinst)
     ok(hinst, r == ERROR_INVALID_HANDLE, "got %u\n", r);
 
     r = MsiCreateTransformSummaryInfoA(db, db, "bogus.mst", 0, 0);
-    todo_wine ok(hinst, r == ERROR_INSTALL_PACKAGE_OPEN_FAILED, "got %u\n", r);
+    todo_wine ok(hinst, r == ERROR_INSTALL_PACKAGE_OPEN_FAILED ||
+                        r == ERROR_INSTALL_PACKAGE_INVALID, "got %u\n", r);
 
     GetCurrentDirectoryA(sizeof(path), path);
     r = MsiDatabaseExportA(db, "Test", path, "bogus.idt");
-- 
2.17.1




More information about the wine-devel mailing list