mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[WINESYNC] msi: Add ProductToBeRegistered property tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 4c5d24ae20a51f4ddf3fde6a57417a442282ed67 by Piotr Caban <piotr@codeweavers.com>
This commit is contained in:
parent
366dd26e41
commit
fbdb719be0
1 changed files with 12 additions and 0 deletions
|
@ -3327,6 +3327,12 @@ static void test_states(void)
|
||||||
CopyFileA(msifile, msifile3, FALSE);
|
CopyFileA(msifile, msifile3, FALSE);
|
||||||
CopyFileA(msifile, msifile4, FALSE);
|
CopyFileA(msifile, msifile4, FALSE);
|
||||||
|
|
||||||
|
size = sizeof(value);
|
||||||
|
memset(value, 0, sizeof(value));
|
||||||
|
r = MsiGetPropertyA(hpkg, "ProductToBeRegistered", value, &size);
|
||||||
|
ok( r == ERROR_SUCCESS, "get property failed: %d\n", r);
|
||||||
|
ok(!value[0], "ProductToBeRegistered = %s\n", value);
|
||||||
|
|
||||||
test_feature_states( __LINE__, hpkg, "one", ERROR_UNKNOWN_FEATURE, 0, 0, FALSE );
|
test_feature_states( __LINE__, hpkg, "one", ERROR_UNKNOWN_FEATURE, 0, 0, FALSE );
|
||||||
test_component_states( __LINE__, hpkg, "alpha", ERROR_UNKNOWN_COMPONENT, 0, 0, FALSE );
|
test_component_states( __LINE__, hpkg, "alpha", ERROR_UNKNOWN_COMPONENT, 0, 0, FALSE );
|
||||||
|
|
||||||
|
@ -3407,6 +3413,12 @@ static void test_states(void)
|
||||||
|
|
||||||
MsiCloseHandle(hdb);
|
MsiCloseHandle(hdb);
|
||||||
|
|
||||||
|
size = sizeof(value);
|
||||||
|
memset(value, 0, sizeof(value));
|
||||||
|
r = MsiGetPropertyA(hpkg, "ProductToBeRegistered", value, &size);
|
||||||
|
ok( r == ERROR_SUCCESS, "get property failed: %d\n", r);
|
||||||
|
ok(value[0]=='1' && !value[1], "ProductToBeRegistered = %s\n", value);
|
||||||
|
|
||||||
test_feature_states( __LINE__, hpkg, "one", ERROR_UNKNOWN_FEATURE, 0, 0, FALSE );
|
test_feature_states( __LINE__, hpkg, "one", ERROR_UNKNOWN_FEATURE, 0, 0, FALSE );
|
||||||
test_component_states( __LINE__, hpkg, "alpha", ERROR_UNKNOWN_COMPONENT, 0, 0, FALSE );
|
test_component_states( __LINE__, hpkg, "alpha", ERROR_UNKNOWN_COMPONENT, 0, 0, FALSE );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue