Hans Leidekker : msi/tests: Show that MsiSetTargetPath updates folder properties.

Alexandre Julliard julliard at winehq.org
Wed May 11 13:02:56 CDT 2011


Module: wine
Branch: master
Commit: defcf092a9ac2dc3711b3d6c67f50976961380b3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=defcf092a9ac2dc3711b3d6c67f50976961380b3

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed May 11 11:25:17 2011 +0200

msi/tests: Show that MsiSetTargetPath updates folder properties.

---

 dlls/msi/tests/package.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c
index ce8866c..d240acf 100644
--- a/dlls/msi/tests/package.c
+++ b/dlls/msi/tests/package.c
@@ -1144,9 +1144,21 @@ static void test_settargetpath(void)
     query_file_path( hpkg, "[#RootFile]", buffer );
     ok( !lstrcmp(buffer, file), "Expected %s, got %s\n", file, buffer);
 
+    sz = sizeof(buffer);
+    r = MsiGetPropertyA( hpkg, "TestParent", buffer, &sz );
+    ok( r == ERROR_SUCCESS, "MsiGetProperty returned %u\n", r );
+    lstrcatA( tempdir, "TestParent\\" );
+    ok( !lstrcmpi(buffer, tempdir), "Expected \"%s\", got \"%s\"\n", tempdir, buffer );
+
     r = MsiSetTargetPath( hpkg, "TestParent", "C:\\one\\two" );
     ok( r == ERROR_SUCCESS, "MsiSetTargetPath returned %d\n", r );
 
+    sz = sizeof(buffer);
+    r = MsiGetPropertyA( hpkg, "TestParent", buffer, &sz );
+    ok( r == ERROR_SUCCESS, "MsiGetProperty returned %u\n", r );
+    ok( lstrcmpi(buffer, "C:\\one\\two\\TestDir\\"),
+        "Expected \"C:\\one\\two\\TestDir\\\", got \"%s\"\n", buffer );
+
     query_file_path( hpkg, "[#TestFile]", buffer );
     ok( !lstrcmpi(buffer, "C:\\one\\two\\TestDir\\testfile.txt"),
         "Expected C:\\one\\two\\TestDir\\testfile.txt, got %s\n", buffer );




More information about the wine-cvs mailing list