[try2][Gdiplus] Skip test if arial is not present

Adam Petaccia adam at tpetaccia.com
Mon Aug 4 13:55:12 CDT 2008


---
 dlls/gdiplus/tests/font.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index bf0e62f..3d30a86 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -108,6 +108,11 @@ todo_wine {
     memcpy(&lfw.lfFaceName, arial, 6 * sizeof(WCHAR));
 
     stat = GdipCreateFontFromLogfontW(hdc, &lfw, &font);
+    if (stat == FileNotFound)
+    {
+        skip("Arial not installed.\n");
+        return;
+    }
     expect(Ok, stat);
     stat = GdipGetLogFontW(font, graphics, &lfw2);
     expect(Ok, stat);
-- 
1.5.4.3




More information about the wine-patches mailing list