Alexandre Julliard : gdi32/tests: Skip test that depends on Tahoma if it isn't installed.
Alexandre Julliard
julliard at winehq.org
Fri Sep 19 07:14:49 CDT 2008
Module: wine
Branch: master
Commit: ff6f7a57b9ddcd5396811074991fdf16b535efb4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff6f7a57b9ddcd5396811074991fdf16b535efb4
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Sep 19 12:07:32 2008 +0200
gdi32/tests: Skip test that depends on Tahoma if it isn't installed.
---
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 7d2c036..b92aa74 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -2328,6 +2328,12 @@ static void test_GetTextFace(void)
HDC dc;
int n;
+ if(!is_font_installed("Tahoma"))
+ {
+ skip("Tahoma is not installed so skipping this test\n");
+ return;
+ }
+
/* 'A' case. */
memcpy(fA.lfFaceName, faceA, sizeof faceA);
f = CreateFontIndirectA(&fA);
More information about the wine-cvs
mailing list