PATCH: variant tests

Marcus Meissner marcus at jet.franken.de
Sun Mar 24 13:03:26 CST 2002


Hi,

This ports most of the variant tests (found in libtest) to the new
testing framework.

I had to comment out some parts which need work.

Current result on WINE:
	tests/vartest.c: 2918 tests executed, 9 marked as todo, 0 failures.

I had to adapt 3 floating point variables. This is a problem which needs
to be fixed ;)

The VarDate* APIs are .. difficult to test and ifdefed out for the time,
the highlevel apis are problematic too and are commented out too now.

The libtest/vartest* can be removed now.

Ciao, Marcus
-------------- next part --------------
Index: dlls/oleaut32/Makefile.in
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/Makefile.in,v
retrieving revision 1.27
diff -u -r1.27 Makefile.in
--- dlls/oleaut32/Makefile.in	20 Mar 2002 22:19:08 -0000	1.27
+++ dlls/oleaut32/Makefile.in	24 Mar 2002 19:02:52 -0000
@@ -28,6 +28,8 @@
 RC_SRCS = \
 	version.rc
 
+CTESTS = tests/vartest.c
+
 @MAKE_DLL_RULES@
 
 ### Dependencies:
Index: dlls/oleaut32/variant.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/variant.c,v
retrieving revision 1.35
diff -u -r1.35 variant.c
--- dlls/oleaut32/variant.c	9 Mar 2002 23:39:10 -0000	1.35
+++ dlls/oleaut32/variant.c	24 Mar 2002 19:02:56 -0000
@@ -1650,7 +1650,7 @@
             ( vt & VT_TYPEMASK ) == VT_NULL ||
 			( vt & VT_TYPEMASK ) > VT_MAXVALIDTYPE )
 		{
-			res = E_INVALIDARG;
+			res = DISP_E_BADVARTYPE;
 		}
 			
     }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vartests.tgz
Type: application/octet-stream
Size: 17327 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20020324/2406fd02/vartests.obj


More information about the wine-patches mailing list