Piotr Caban : msi: Add ProductToBeRegistered property tests.

Alexandre Julliard julliard at winehq.org
Tue Jun 19 14:52:02 CDT 2018


Module: wine
Branch: master
Commit: 4c5d24ae20a51f4ddf3fde6a57417a442282ed67
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4c5d24ae20a51f4ddf3fde6a57417a442282ed67

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon Jun 18 20:13:40 2018 +0200

msi: Add ProductToBeRegistered property tests.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msi/tests/package.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c
index b0dc912..52a4bfd 100644
--- a/dlls/msi/tests/package.c
+++ b/dlls/msi/tests/package.c
@@ -3327,6 +3327,12 @@ static void test_states(void)
     CopyFileA(msifile, msifile3, 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_component_states( __LINE__, hpkg, "alpha", ERROR_UNKNOWN_COMPONENT, 0, 0, FALSE );
 
@@ -3407,6 +3413,12 @@ static void test_states(void)
 
     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_component_states( __LINE__, hpkg, "alpha", ERROR_UNKNOWN_COMPONENT, 0, 0, FALSE );
 




More information about the wine-cvs mailing list