On Do, 2009-02-26 at 10:50 +0100, Hans Leidekker wrote:
- state = 0xdeadbee;
- action = 0xdeadbee;
- r = MsiGetFeatureState(hpkg, "one", &state, &action);
- ok( r == ERROR_UNKNOWN_FEATURE, "Expected ERROR_UNKNOWN_FEATURE,
got %d\n", r );
- ok( state == 0xdeadbee, "Expected 0xdeadbee, got %d\n", state);
- ok( action == 0xdeadbee, "Expected 0xdeadbee, got %d\n", action);
- state = 0xdeadbee;
- action = 0xdeadbee;
- r = MsiGetFeatureState(hpkg, "two", &state, &action);
- ok( r == ERROR_UNKNOWN_FEATURE, "Expected ERROR_UNKNOWN_FEATURE,
got %d\n", r );
- ok( state == 0xdeadbee, "Expected 0xdeadbee, got %d\n", state);
- ok( action == 0xdeadbee, "Expected 0xdeadbee, got %d\n", action);
- state = 0xdeadbee;
- action = 0xdeadbee;
- r = MsiGetFeatureState(hpkg, "three", &state, &action);
- ok( r == ERROR_UNKNOWN_FEATURE, "Expected ERROR_UNKNOWN_FEATURE,
got %d\n", r );
- ok( state == 0xdeadbee, "Expected 0xdeadbee, got %d\n", state);
- ok( action == 0xdeadbee, "Expected 0xdeadbee, got %d\n", action);
This is huge amount of almost the same code in that test. Please use tables.