msi: Fix testfailure on some NT4 machines

André Hentschel nerv at dawncrow.de
Sun Dec 12 15:28:30 CST 2010


---
 dlls/msi/tests/patch.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/tests/patch.c b/dlls/msi/tests/patch.c
index 4cad4eb..edf28db 100644
--- a/dlls/msi/tests/patch.c
+++ b/dlls/msi/tests/patch.c
@@ -804,7 +804,13 @@ static void test_simple_patch( void )
     }
 
     size = get_pf_file_size( "msitest\\patch.txt" );
-    ok( size == 1002, "expected 1002, got %u\n", size );
+    ok( size == 1002 || broken( size == 1000 ) /* version 2.0 */, "expected 1002, got %u\n", size );
+
+    if (size == 1000)
+    {
+        skip("Windows Installer < 3.0 detected\n");
+        goto uninstall;
+    }
 
     /* show that MsiOpenPackage applies registered patches */
     r = MsiOpenPackageA( path, &hpackage );
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list