gdi32/tests: Skip test that depends on Tahoma if it isn't installed.

This commit is contained in:
Alexandre Julliard 2008-09-19 12:07:32 +02:00
parent 2193a70137
commit ff6f7a57b9
1 changed files with 6 additions and 0 deletions

View File

@ -2328,6 +2328,12 @@ static void test_GetTextFace(void)
HDC dc; HDC dc;
int n; int n;
if(!is_font_installed("Tahoma"))
{
skip("Tahoma is not installed so skipping this test\n");
return;
}
/* 'A' case. */ /* 'A' case. */
memcpy(fA.lfFaceName, faceA, sizeof faceA); memcpy(fA.lfFaceName, faceA, sizeof faceA);
f = CreateFontIndirectA(&fA); f = CreateFontIndirectA(&fA);