gdiplus/tests: Skip Time New Roman test if it's not installed

André Hentschel nerv at dawncrow.de
Sat Jul 30 14:01:56 CDT 2011


should help here:  http://test.winehq.org/data/c1aaacd58c505548351defcb1077c65e8bd59fc3/linux_fg-deb64-t32/gdiplus:font.html
---
 dlls/gdiplus/tests/font.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index 323461a..63000ad 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -319,6 +319,13 @@ serif:
     expect (Ok, stat);
     stat = GdipGetFamilyName (family, familyName, LANG_NEUTRAL);
     expect (Ok, stat);
+    if (lstrcmpiW(familyName, TimesNewRoman))
+    {
+        stat = GdipDeleteFontFamily (family);
+        expect (Ok, stat);
+        skip("Times New Roman not installed\n");
+        goto monospace;
+    }
     ok (lstrcmpiW(familyName, TimesNewRoman) == 0,
         "Expected Times New Roman, got %s\n", wine_dbgstr_w(familyName));
     stat = GdipDeleteFontFamily (family);
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list