gdi32: skip some tests if Times New Roman is not installed

Austin English austinenglish at gmail.com
Sat Mar 22 17:27:51 CDT 2014


Failure on win8 is unrelated to my patch:
https://testbot.winehq.org/JobDetails.pl?Key=5862

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140322/6169acb7/attachment.html>
-------------- next part --------------
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index a205ac7..11fe149 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -2254,6 +2254,12 @@ static void test_SetTextJustification(void)
     GetClientRect( hwnd, &clientArea );
     hdc = GetDC( hwnd );
 
+    if (!is_truetype_font_installed("Times New Roman"))
+    {
+        skip("Times New Roman not installed\n");
+        return;
+    }
+
     memset(&lf, 0, sizeof lf);
     lf.lfCharSet = ANSI_CHARSET;
     lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;


More information about the wine-patches mailing list