Module: wine Branch: master Commit: 39f3e15bb475b50cbb4341d95685addb4716d79f URL: http://source.winehq.org/git/wine.git/?a=commit;h=39f3e15bb475b50cbb4341d956...
Author: Dan Kegel dank@kegel.com Date: Sun Jan 13 18:40:40 2008 -0800
hlink/tests: Skip tests if hlink couldn't be created.
---
dlls/hlink/tests/hlink.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/hlink/tests/hlink.c b/dlls/hlink/tests/hlink.c index a2d7360..271f584 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);