From 7e0b9301825841c87777832de362d0601e4ba74c Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 12 Nov 2008 17:30:22 +0100 Subject: [PATCH] crypt32/tests: Skip some tests if needed. --- dlls/crypt32/tests/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/crypt32/tests/main.c b/dlls/crypt32/tests/main.c index 7a7d4587696..b1e53b13c56 100644 --- a/dlls/crypt32/tests/main.c +++ b/dlls/crypt32/tests/main.c @@ -416,6 +416,11 @@ static void test_format_object(void) ok(ret, "CryptFormatObject failed: %d\n", GetLastError()); if (ret) { + if (size == 0 && GetLastError() == ERROR_FILE_NOT_FOUND) + { + win_skip("CryptFormatObject has no default implementation\n"); + return; + } ok(size == sizeof(WCHAR), "unexpected size %d\n", size); str = HeapAlloc(GetProcessHeap(), 0, size); SetLastError(0xdeadbeef); -- 2.11.4.GIT