msi/tests: Skip tests for functions that are not available.

This commit is contained in:
Paul Vriens 2008-02-26 13:52:41 +01:00 committed by Alexandre Julliard
parent e7937f3cd5
commit ecf8c5af36
1 changed files with 18 additions and 0 deletions

View File

@ -972,6 +972,12 @@ static void test_MsiSourceListEnumSources(void)
HKEY url, net, source;
DWORD size;
if (!pMsiSourceListEnumSourcesA)
{
skip("MsiSourceListEnumSourcesA is not available\n");
return;
}
create_test_guid(prodcode, prod_squashed);
get_user_sid(&usersid);
@ -1564,6 +1570,12 @@ static void test_MsiSourceListSetInfo(void)
LONG res;
UINT r;
if (!pMsiSourceListSetInfoA)
{
skip("MsiSourceListSetInfoA is not available\n");
return;
}
create_test_guid(prodcode, prod_squashed);
get_user_sid(&usersid);
@ -1964,6 +1976,12 @@ static void test_MsiSourceListAddMediaDisk(void)
LONG res;
UINT r;
if (!pMsiSourceListAddMediaDiskA)
{
skip("MsiSourceListAddMediaDiskA is not available\n");
return;
}
create_test_guid(prodcode, prod_squashed);
get_user_sid(&usersid);