From 6b37543adc206dc5824067482c8f9582c4921c92 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 26 Feb 2008 14:23:29 +0100 Subject: [PATCH] msi/tests: Skip tests that contain functions that are not available. --- dlls/msi/tests/install.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index 1f2be2caced..704d5315818 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); -- 2.11.4.GIT