msi/test: Add tests for MsiGetFeatureState.
This commit is contained in:
parent
d56d0d98a3
commit
d59c99067a
@ -3283,6 +3283,19 @@ static void test_states(void)
|
|||||||
r = MsiDoAction( hpkg, "FileCost");
|
r = MsiDoAction( hpkg, "FileCost");
|
||||||
ok( r == ERROR_SUCCESS, "file cost failed\n");
|
ok( r == ERROR_SUCCESS, "file cost failed\n");
|
||||||
|
|
||||||
|
r = MsiGetFeatureState(hpkg, "one", NULL, NULL);
|
||||||
|
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r );
|
||||||
|
|
||||||
|
action = 0xdeadbee;
|
||||||
|
r = MsiGetFeatureState(hpkg, "one", NULL, &action);
|
||||||
|
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r );
|
||||||
|
ok( state == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", state);
|
||||||
|
|
||||||
|
state = 0xdeadbee;
|
||||||
|
r = MsiGetFeatureState( hpkg, "one", &state, NULL);
|
||||||
|
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r );
|
||||||
|
ok( state == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", state);
|
||||||
|
|
||||||
state = 0xdeadbee;
|
state = 0xdeadbee;
|
||||||
action = 0xdeadbee;
|
action = 0xdeadbee;
|
||||||
r = MsiGetFeatureState(hpkg, "one", &state, &action);
|
r = MsiGetFeatureState(hpkg, "one", &state, &action);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user