gdi32/tests: Use skip where appropriate.

This commit is contained in:
Paul Vriens 2007-03-05 17:29:12 +01:00 committed by Alexandre Julliard
parent 37cba3a9f9
commit a105c6b1de
1 changed files with 8 additions and 3 deletions

View File

@ -386,7 +386,12 @@ static void test_GdiGetCharDimensions(void)
SIZE size;
LONG avgwidth, height;
static const char szAlphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
if (!pGdiGetCharDimensions) return;
if (!pGdiGetCharDimensions)
{
skip("GetFontUnicodeRanges not available on this platform\n");
return;
}
hdc = CreateCompatibleDC(NULL);
@ -506,13 +511,13 @@ static void test_GetGlyphIndices()
TEXTMETRIC textm;
if (!pGetGlyphIndicesW) {
trace("GetGlyphIndices not available on platform\n");
skip("GetGlyphIndices not available on platform\n");
return;
}
if(!is_font_installed("Symbol"))
{
trace("Symbol is not installed so skipping this test\n");
skip("Symbol is not installed so skipping this test\n");
return;
}