gdi32/tests: Use skip where appropriate.
This commit is contained in:
parent
37cba3a9f9
commit
a105c6b1de
|
@ -386,7 +386,12 @@ static void test_GdiGetCharDimensions(void)
|
||||||
SIZE size;
|
SIZE size;
|
||||||
LONG avgwidth, height;
|
LONG avgwidth, height;
|
||||||
static const char szAlphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
static const char szAlphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||||
if (!pGdiGetCharDimensions) return;
|
|
||||||
|
if (!pGdiGetCharDimensions)
|
||||||
|
{
|
||||||
|
skip("GetFontUnicodeRanges not available on this platform\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
hdc = CreateCompatibleDC(NULL);
|
hdc = CreateCompatibleDC(NULL);
|
||||||
|
|
||||||
|
@ -506,13 +511,13 @@ static void test_GetGlyphIndices()
|
||||||
TEXTMETRIC textm;
|
TEXTMETRIC textm;
|
||||||
|
|
||||||
if (!pGetGlyphIndicesW) {
|
if (!pGetGlyphIndicesW) {
|
||||||
trace("GetGlyphIndices not available on platform\n");
|
skip("GetGlyphIndices not available on platform\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!is_font_installed("Symbol"))
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue