hlink/tests: Skip tests if hlink couldn't be created.
This commit is contained in:
parent
cee693108a
commit
39f3e15bb4
|
@ -293,6 +293,10 @@ static void test_persist(void)
|
||||||
hr = HlinkCreateFromString(url, NULL, NULL, NULL,
|
hr = HlinkCreateFromString(url, NULL, NULL, NULL,
|
||||||
0, NULL, &IID_IHlink, (LPVOID*) &lnk);
|
0, NULL, &IID_IHlink, (LPVOID*) &lnk);
|
||||||
ok(hr == S_OK, "IHlinCreateFromString failed with error 0x%08x\n", hr);
|
ok(hr == S_OK, "IHlinCreateFromString failed with error 0x%08x\n", hr);
|
||||||
|
if (!lnk) {
|
||||||
|
skip("Can't create lnk, skipping test_persist. Was wineprefixcreate run properly?\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
test_persist_save_data("url only", lnk, expected_hlink_data, sizeof(expected_hlink_data));
|
test_persist_save_data("url only", lnk, expected_hlink_data, sizeof(expected_hlink_data));
|
||||||
IHlink_Release(lnk);
|
IHlink_Release(lnk);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue