msi: Add a test for MsiSetTargetPath.

This commit is contained in:
Hans Leidekker 2010-01-28 11:04:49 +01:00 committed by Alexandre Julliard
parent 49be8db6b1
commit 4d14ea47f7
1 changed files with 8 additions and 0 deletions

View File

@ -1047,6 +1047,14 @@ static void test_settargetpath(void)
ok( r == ERROR_SUCCESS, "failed to get target path: %d\n", r);
ok( !lstrcmpi(buffer, "C:\\one\\two\\"), "Expected C:\\one\\two\\, got %s\n", buffer);
r = MsiSetTargetPath( hpkg, "TestParent", "C:\\one\\two\\three" );
ok( r == ERROR_SUCCESS, "MsiSetTargetPath returned %d\n", r );
sz = sizeof buffer - 1;
r = MsiGetTargetPath( hpkg, "TestParent", buffer, &sz );
ok( r == ERROR_SUCCESS, "failed to get target path: %d\n", r);
ok( !lstrcmpi(buffer, "C:\\one\\two\\three\\"), "Expected C:\\one\\two\\three\\, got %s\n", buffer);
MsiCloseHandle( hpkg );
}