From 39f3e15bb475b50cbb4341d95685addb4716d79f Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Sun, 13 Jan 2008 18:40:40 -0800 Subject: [PATCH] hlink/tests: Skip tests if hlink couldn't be created. --- dlls/hlink/tests/hlink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/hlink/tests/hlink.c b/dlls/hlink/tests/hlink.c index a2d7360a47d..271f584741c 100644 --- a/dlls/hlink/tests/hlink.c +++ b/dlls/hlink/tests/hlink.c @@ -293,6 +293,10 @@ static void test_persist(void) hr = HlinkCreateFromString(url, NULL, NULL, NULL, 0, NULL, &IID_IHlink, (LPVOID*) &lnk); 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)); IHlink_Release(lnk);