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

msi/test: Add tests for MsiGetFeatureState.

parent d56d0d98
......@@ -3283,6 +3283,19 @@ static void test_states(void)
r = MsiDoAction( hpkg, "FileCost");
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;
action = 0xdeadbee;
r = MsiGetFeatureState(hpkg, "one", &state, &action);
......
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