hlink/tests: Skip tests if hlink couldn't be created.

This commit is contained in:
Dan Kegel 2008-01-13 18:40:40 -08:00 committed by Alexandre Julliard
parent cee693108a
commit 39f3e15bb4
1 changed files with 4 additions and 0 deletions

View File

@ -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);