mscms/tests: Use todo_wine_if() in tests
Frédéric Delanoy
frederic.delanoy at gmail.com
Wed Feb 17 08:18:25 CST 2016
Signed-off-by: Frédéric Delanoy <frederic.delanoy at gmail.com>
---
dlls/mscms/tests/profile.c | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c
index f3ebe03..c4ea7f2 100644
--- a/dlls/mscms/tests/profile.c
+++ b/dlls/mscms/tests/profile.c
@@ -675,10 +675,8 @@ static void test_EnumColorProfilesA( char *standardprofile )
ok( !ret, "EnumColorProfilesA() succeeded (%d)\n", GetLastError() );
ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
- if (have_color_profile)
+ todo_wine_if (!have_color_profile)
ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() );
- else
- todo_wine ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() );
size = 0;
@@ -689,10 +687,8 @@ static void test_EnumColorProfilesA( char *standardprofile )
size = total;
ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
- if (have_color_profile)
+ todo_wine_if (!have_color_profile)
ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() );
- else
- todo_wine ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() );
HeapFree( GetProcessHeap(), 0, buffer );
}
@@ -729,10 +725,8 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
ok( !ret, "EnumColorProfilesW() succeeded (%d)\n", GetLastError() );
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
- if (have_color_profile)
+ todo_wine_if (!have_color_profile)
ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() );
- else
- todo_wine ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() );
size = 0;
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
@@ -742,10 +736,8 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
size = total;
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
- if (have_color_profile)
+ todo_wine_if (!have_color_profile)
ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() );
- else
- todo_wine ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() );
HeapFree( GetProcessHeap(), 0, buffer );
}
--
2.7.1
More information about the wine-patches
mailing list