Module: wine Branch: master Commit: 6b37543adc206dc5824067482c8f9582c4921c92 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6b37543adc206dc5824067482c...
Author: Paul Vriens paul.vriens.wine@gmail.com Date: Tue Feb 26 14:23:29 2008 +0100
msi/tests: Skip tests that contain functions that are not available.
---
dlls/msi/tests/install.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index 1f2be2c..704d531 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -2022,6 +2022,12 @@ static void test_publish(void)
static const CHAR subkey[] = "Software\Microsoft\Windows\CurrentVersion\Uninstall";
+ if (!pMsiQueryComponentStateA) + { + skip("MsiQueryComponentStateA is not available\n"); + return; + } + get_date_str(date); GetTempPath(MAX_PATH, temp);
@@ -2904,6 +2910,12 @@ static void test_publishsourcelist(void) CHAR path[MAX_PATH]; CHAR prodcode[] = "{7DF88A48-996F-4EC8-A022-BF956F9B2CBB}";
+ if (!pMsiSourceListEnumSourcesA || !pMsiSourceListGetInfoA) + { + skip("MsiSourceListEnumSourcesA and/or MsiSourceListGetInfoA are not available\n"); + return; + } + CreateDirectoryA("msitest", NULL); create_file("msitest\maximus", 500);