Module: wine Branch: master Commit: d1bcc32bf2630687032e46b8dc7503e3061e1c78 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d1bcc32bf2630687032e46b8dc...
Author: Paul Vriens paul.vriens.wine@gmail.com Date: Thu Jul 31 19:13:07 2008 +0200
gdi32/tests: Don't test unimplemented functions.
---
dlls/gdi32/tests/font.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index f305b3a..7065cd5 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -2363,7 +2363,13 @@ static void test_GetTextFace(void)
/* 'W' case. */ memcpy(fW.lfFaceName, faceW, sizeof faceW); + SetLastError(0xdeadbeef); f = CreateFontIndirectW(&fW); + if (!f && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) + { + win_skip("CreateFontIndirectW is not implemented\n"); + return; + } ok(f != NULL, "CreateFontIndirectW failed\n");
dc = GetDC(NULL);