gdiplus: skip some tests if Arial is not installed

Austin English austinenglish at gmail.com
Sat Mar 22 20:13:35 CDT 2014


On Sat, Mar 22, 2014 at 6:09 PM, Dmitry Timoshkov <dmitry at baikal.ru> wrote:

> Austin English <austinenglish at gmail.com> wrote:
>
> > +    status = GdipCreateFontFamilyFromName(Arial, NULL, &family);
> > +    if (status == FontFamilyNotFound)
> > +    {
> > +        skip("Arial not installed\n");
> > +        return;
> > +    }
>
> Why do you need this? This test doesn't depend on Arial font presence.
>
> --
> Dmitry.
>

dlls/gdiplus/tests/font.c

font.c:784<https://source.winehq.org/git/wine.git/?a=blob;f=dlls/gdiplus/tests/font.c;hb=3ea505bdea39d9c412120d6120c39067170cabc7#l784>:
Test failed: wrong face name Liberation Sans
font.c:794<https://source.winehq.org/git/wine.git/?a=blob;f=dlls/gdiplus/tests/font.c;hb=3ea505bdea39d9c412120d6120c39067170cabc7#l794>:
Test failed: wrong face name Liberation Sans

784 ok(!lstrcmpA(lf.lfFaceName, "Arial"), "wrong face name %s\n",
lf.lfFaceName);
...
794 ok(!lstrcmpA(lf.lfFaceName, "Arial"), "wrong face name %s\n",
lf.lfFaceName);

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20140322/431dbe4e/attachment-0001.html>


More information about the wine-devel mailing list