msi: Fix a failing test on win9x.

This commit is contained in:
James Hawkins 2009-02-25 20:15:31 -08:00 committed by Alexandre Julliard
parent ea28915133
commit 5735e2fafd
1 changed files with 8 additions and 3 deletions

View File

@ -4628,10 +4628,15 @@ static void test_missingcab(void)
create_pf_data("msitest\\caesar", "abcdefgh", TRUE);
r = MsiInstallProductA(msifile, NULL);
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r);
ok(delete_pf("msitest\\augustus", TRUE), "File not installed\n");
ok(r == ERROR_SUCCESS ||
broken(r == ERROR_INSTALL_FAILURE), /* win9x */
"Expected ERROR_SUCCESS, got %u\n", r);
if (r == ERROR_SUCCESS)
{
ok(delete_pf("msitest\\augustus", TRUE), "File not installed\n");
ok(delete_pf("msitest\\maximus", TRUE), "File not installed\n");
}
ok(delete_pf("msitest\\caesar", TRUE), "File not installed\n");
ok(delete_pf("msitest\\maximus", TRUE), "File not installed\n");
ok(!delete_pf("msitest\\gaius", TRUE), "File installed\n");
ok(delete_pf("msitest", FALSE), "File not installed\n");