mscms: test only one invalid GetStandardColorSpaceProfile() param in a single check [#3]

Saulius Krasuckas saulius2 at ar.fi.lt
Wed Dec 21 06:19:44 CST 2005


This time I've left old checks in a place, still IMHO they are a bit 
useless.
Fixed two typos.

Platforms tested in: WinME, WinXP_SP2.


Log message:
	Saulius Krasuckas <saulius.krasuckas at ieee.org>
	Test only one invalid GetStandardColorSpaceProfile() param in a single check.


Index: dlls/mscms/tests/profile.c
===================================================================
RCS file: /home/wine/wine/dlls/mscms/tests/profile.c,v
retrieving revision 1.22
diff -p -u -r1.22 profile.c
--- dlls/mscms/tests/profile.c	15 Dec 2005 10:36:06 -0000	1.22
+++ dlls/mscms/tests/profile.c	18 Dec 2005 13:17:38 -0000
@@ -460,6 +460,19 @@ static void test_GetStandardColorSpacePr
 
     /* Parameter checks */
 
+    /* Single invalid parameter checks */
+    todo_wine
+    fail_GSCSPA(machine, SPACE_RGB, newprofile, &size, sizeP, (GLE == ERROR_NOT_SUPPORTED));
+    todo_wine
+    fail_GSCSPA(NULL,    (DWORD)-1, newprofile, &size, sizeP, (GLE == ERROR_FILE_NOT_FOUND));
+    todo_wine
+    fail_GSCSPA(NULL,    SPACE_RGB, NULL,       &size, sizeP, (GLE == ERROR_INSUFFICIENT_BUFFER));
+    todo_wine
+    fail_GSCSPA(NULL,    SPACE_RGB, newprofile, NULL,  sizeP, (GLE == ERROR_INVALID_PARAMETER));
+    todo_wine
+    fail_GSCSPA(NULL,    SPACE_RGB, newprofile, &size, 0,     (GLE == ERROR_MORE_DATA || ERROR_INSUFFICIENT_BUFFER));
+
+    /* Several invalid parameter checks */
     todo_wine 
     fail_GSCSPA(machine,  0, newprofile, &size, 0,     (GLE == ERROR_INVALID_PARAMETER || GLE == ERROR_NOT_SUPPORTED));
     todo_wine 
@@ -514,6 +527,19 @@ static void test_GetStandardColorSpacePr
 
     /* Parameter checks */
 
+    /* Single invalid parameter checks */
+    todo_wine
+    fail_GSCSPW(machineW, SPACE_RGB, newprofile, &size, sizeP, (GLE == ERROR_NOT_SUPPORTED));
+    todo_wine
+    fail_GSCSPW(NULL,     (DWORD)-1, newprofile, &size, sizeP, (GLE == ERROR_FILE_NOT_FOUND));
+    todo_wine
+    fail_GSCSPW(NULL,     SPACE_RGB, NULL,       &size, sizeP, (GLE == ERROR_INSUFFICIENT_BUFFER));
+    todo_wine
+    fail_GSCSPW(NULL,     SPACE_RGB, newprofile, NULL,  sizeP, (GLE == ERROR_INVALID_PARAMETER));
+    todo_wine
+    fail_GSCSPW(NULL,     SPACE_RGB, newprofile, &size, 0,     (GLE == ERROR_MORE_DATA || ERROR_INSUFFICIENT_BUFFER));
+
+    /* Several invalid parameter checks */
     todo_wine 
     fail_GSCSPW(machineW,  0, newprofile, &size, 0,     (GLE == ERROR_INVALID_PARAMETER || GLE == ERROR_NOT_SUPPORTED));
     todo_wine 



More information about the wine-patches mailing list