=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: mscms/tests: Use todo_wine_if () in tests.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 17 11:15:03 CST 2016


Module: wine
Branch: master
Commit: 6ef5ae801d6e1f8f1a6492952d1fc82b9d1604ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6ef5ae801d6e1f8f1a6492952d1fc82b9d1604ea

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Wed Feb 17 15:18:25 2016 +0100

mscms/tests: Use todo_wine_if() in tests.

Signed-off-by: Frédéric Delanoy <frederic.delanoy at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 );
 }




More information about the wine-cvs mailing list