Commit 1b4b37cc authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi/tests: Fix test failures.

parent ecb59b0b
......@@ -4055,6 +4055,15 @@ static void test_appsearch(void)
r = RegCreateKeyExA(HKEY_LOCAL_MACHINE, "Software\\Winetest_msi", 0, NULL, 0, KEY_ALL_ACCESS|KEY_WOW64_32KEY,
NULL, &hkey, NULL);
ok( r == ERROR_SUCCESS, "Could not create key: %d.\n", r );
if (r == ERROR_ACCESS_DENIED)
{
skip("insufficient rights\n");
RegDeleteKeyA(HKEY_CURRENT_USER, "Software\\Winetest_msi");
MsiCloseHandle(hdb);
DeleteFileA(msifile);
return;
}
r = RegSetValueExA(hkey, NULL, 0, REG_SZ, (const BYTE *)"c:\\windows\\system32\\notepad.exe",
sizeof("c:\\windows\\system32\\notepad.exe"));
ok( r == ERROR_SUCCESS, "Could not set key value: %d.\n", r);
......
......@@ -31,6 +31,7 @@
#include <objbase.h>
#include "wine/test.h"
#include "utils.h"
static BOOL is_wow64;
......@@ -686,6 +687,11 @@ static void test_MsiSourceListAddSourceEx(void)
win_skip("Skipping MsiSourceListAddSourceExA tests\n");
return;
}
if (is_process_limited())
{
skip("process is limited\n");
return;
}
create_test_guid(prodcode, prod_squashed);
if (!(usersid = get_user_sid()))
......@@ -1695,6 +1701,11 @@ static void test_MsiSourceListSetInfo(void)
win_skip("MsiSourceListSetInfoA is not available\n");
return;
}
if (is_process_limited())
{
skip("process is limited\n");
return;
}
create_test_guid(prodcode, prod_squashed);
if (!(usersid = get_user_sid()))
......@@ -2126,6 +2137,11 @@ static void test_MsiSourceListAddMediaDisk(void)
win_skip("MsiSourceListAddMediaDiskA is not available\n");
return;
}
if (is_process_limited())
{
skip("process is limited\n");
return;
}
create_test_guid(prodcode, prod_squashed);
if (!(usersid = get_user_sid()))
......@@ -3277,6 +3293,11 @@ static void test_MsiSourceListAddSource(void)
win_skip("Skipping MsiSourceListAddSourceA tests\n");
return;
}
if (is_process_limited())
{
skip("process is limited\n");
return;
}
create_test_guid(prodcode, prod_squashed);
if (!(usersid = get_user_sid()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment