From 204ec74044f367ccb2fdc8583e7ae961ec2203d5 Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Mon, 28 Jun 2004 20:29:36 +0000 Subject: [PATCH] Skip tests without error if psapi.dll could not be loaded. --- dlls/psapi/tests/module.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/psapi/tests/module.c b/dlls/psapi/tests/module.c index 9322e4d7377..e587f0574b0 100644 --- a/dlls/psapi/tests/module.c +++ b/dlls/psapi/tests/module.c @@ -136,8 +136,10 @@ static void test_module_base_name(void) START_TEST(module) { dll = LoadLibrary("psapi.dll"); - ok(dll != 0, "LoadLibraryA failed\n"); - if (!dll) return; + if (!dll) { + trace("LoadLibraryA(psapi.dll) failed: skipping tests with target module\n"); + return; + } pGetModuleBaseNameA = (void*) GetProcAddress(dll, "GetModuleBaseNameA"); -- 2.11.4.GIT