Commit f133222d authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi/tests: Add a test for MsiGetComponentState.

parent 35bdf018
......@@ -7829,7 +7829,7 @@ static void test_removefiles(void)
ok( r == ERROR_SUCCESS, "cost init failed\n");
r = MsiDoAction( hpkg, "FileCost");
ok( r == ERROR_SUCCESS, "cost finalize failed\n");
ok( r == ERROR_SUCCESS, "file cost failed\n");
installed = action = 0xdeadbeef;
r = MsiGetComponentState( hpkg, "oxygen", &installed, &action );
......@@ -7841,11 +7841,19 @@ static void test_removefiles(void)
ok( r == ERROR_SUCCESS, "cost finalize failed\n");
r = MsiDoAction( hpkg, "InstallValidate");
ok( r == ERROR_SUCCESS, "cost finalize failed\n");
ok( r == ERROR_SUCCESS, "install validate failed\n");
r = MsiSetComponentState( hpkg, "hydrogen", INSTALLSTATE_ABSENT );
ok( r == ERROR_SUCCESS, "failed to set component state: %d\n", r);
installed = action = 0xdeadbeef;
r = MsiGetComponentState( hpkg, "hydrogen", &installed, &action );
ok( r == ERROR_SUCCESS, "failed to get component state %u\n", r );
todo_wine {
ok( installed == INSTALLSTATE_UNKNOWN, "expected INSTALLSTATE_UNKNOWN, got %d\n", installed );
ok( action == INSTALLSTATE_UNKNOWN, "expected INSTALLSTATE_UNKNOWN, got %d\n", action );
}
r = MsiSetComponentState( hpkg, "helium", INSTALLSTATE_LOCAL );
ok( r == ERROR_SUCCESS, "failed to set component state: %d\n", r);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment