Hans Leidekker : msi: Add a test for MsiSetFeatureState.
Alexandre Julliard
julliard at winehq.org
Tue Jul 20 11:20:35 CDT 2010
Module: wine
Branch: master
Commit: 03cddf9d05341b3e3dc2badff9cdcf4126d54c54
URL: http://source.winehq.org/git/wine.git/?a=commit;h=03cddf9d05341b3e3dc2badff9cdcf4126d54c54
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Jul 20 14:54:20 2010 +0200
msi: Add a test for MsiSetFeatureState.
---
dlls/msi/tests/package.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c
index d2514ce..ad22575 100644
--- a/dlls/msi/tests/package.c
+++ b/dlls/msi/tests/package.c
@@ -9241,6 +9241,9 @@ static void test_featureparents(void)
r = MsiSetFeatureState(hpkg, "orion", INSTALLSTATE_ABSENT);
ok( r == ERROR_SUCCESS, "failed to set feature state: %d\n", r);
+ r = MsiSetFeatureState(hpkg, "nosuchfeature", INSTALLSTATE_ABSENT);
+ ok( r == ERROR_UNKNOWN_FEATURE, "Expected ERROR_UNKNOWN_FEATURE, got %u\n", r);
+
state = 0xdeadbee;
action = 0xdeadbee;
r = MsiGetFeatureState(hpkg, "zodiac", &state, &action);
More information about the wine-cvs
mailing list