gdi32/tests: Skip functions that are available but not implemented.
This commit is contained in:
parent
ad697ecdc4
commit
e9ccee0501
|
@ -35,7 +35,13 @@ static void test_GetICMProfileA( HDC dc )
|
||||||
DWORD size, error;
|
DWORD size, error;
|
||||||
char filename[MAX_PATH];
|
char filename[MAX_PATH];
|
||||||
|
|
||||||
|
SetLastError( 0xdeadbeef );
|
||||||
ret = GetICMProfileA( NULL, NULL, NULL );
|
ret = GetICMProfileA( NULL, NULL, NULL );
|
||||||
|
if ( !ret && ( GetLastError() == ERROR_CALL_NOT_IMPLEMENTED ) )
|
||||||
|
{
|
||||||
|
skip( "GetICMProfileA is not implemented\n" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok( !ret, "GetICMProfileA succeeded\n" );
|
ok( !ret, "GetICMProfileA succeeded\n" );
|
||||||
|
|
||||||
ret = GetICMProfileA( dc, NULL, NULL );
|
ret = GetICMProfileA( dc, NULL, NULL );
|
||||||
|
@ -73,7 +79,13 @@ static void test_GetICMProfileW( HDC dc )
|
||||||
DWORD size, error;
|
DWORD size, error;
|
||||||
WCHAR filename[MAX_PATH];
|
WCHAR filename[MAX_PATH];
|
||||||
|
|
||||||
|
SetLastError( 0xdeadbeef );
|
||||||
ret = GetICMProfileW( NULL, NULL, NULL );
|
ret = GetICMProfileW( NULL, NULL, NULL );
|
||||||
|
if ( !ret && ( GetLastError() == ERROR_CALL_NOT_IMPLEMENTED ) )
|
||||||
|
{
|
||||||
|
skip( "GetICMProfileW is not implemented\n" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok( !ret, "GetICMProfileW succeeded\n" );
|
ok( !ret, "GetICMProfileW succeeded\n" );
|
||||||
|
|
||||||
ret = GetICMProfileW( dc, NULL, NULL );
|
ret = GetICMProfileW( dc, NULL, NULL );
|
||||||
|
@ -107,6 +119,7 @@ static void test_SetICMMode( HDC dc )
|
||||||
{
|
{
|
||||||
INT ret, knob, save;
|
INT ret, knob, save;
|
||||||
|
|
||||||
|
SetLastError( 0xdeadbeef );
|
||||||
ret = SetICMMode( NULL, 0 );
|
ret = SetICMMode( NULL, 0 );
|
||||||
ok( !ret, "SetICMMode succeeded (%d)\n", GetLastError() );
|
ok( !ret, "SetICMMode succeeded (%d)\n", GetLastError() );
|
||||||
|
|
||||||
|
@ -127,7 +140,13 @@ static void test_SetICMMode( HDC dc )
|
||||||
ret = SetICMMode( dc, save );
|
ret = SetICMMode( dc, save );
|
||||||
ok( ret, "SetICMMode failed (%d)\n", GetLastError() );
|
ok( ret, "SetICMMode failed (%d)\n", GetLastError() );
|
||||||
|
|
||||||
|
SetLastError( 0xdeadbeef );
|
||||||
dc = CreateDCW( displayW, NULL, NULL, NULL );
|
dc = CreateDCW( displayW, NULL, NULL, NULL );
|
||||||
|
if ( !dc && ( GetLastError() == ERROR_CALL_NOT_IMPLEMENTED ) )
|
||||||
|
{
|
||||||
|
skip( "CreateDCW is not implemented\n" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok( dc != NULL, "CreateDCW failed (%d)\n", GetLastError() );
|
ok( dc != NULL, "CreateDCW failed (%d)\n", GetLastError() );
|
||||||
|
|
||||||
ret = SetICMMode( dc, ICM_QUERY );
|
ret = SetICMMode( dc, ICM_QUERY );
|
||||||
|
|
Loading…
Reference in New Issue