oleaut32/vartest fixes
Francois Gouget
fgouget at free.fr
Fri Dec 20 23:59:16 CST 2002
Due to the changes to the result arrays this patch is big. So I sent it
compressed.
Changelog:
* dlls/oleaut32/tests/vartest.c
Move the test strings into their own array and convert them to
unicode using a for loop. This lets us later print the offending string
when a test fails.
Fix the MSVC compilation error (XXXe183) and warnings (put suffixes
as in 0L & 1.0F, signed/unsigned warnings, s/-2147483648/0x80000000L/)
Uncomment the DateFromStr tests and fill in the todo fields where
appropriate
Define an NB_OLE_STRINGS macro and use it to make sure all the arrays
have the right number of fields
In the *FromStr loops, fill the return field with a dummy value (42)
before calling the conversion function. This way a test no longer
depends on whether the previous test failed or not!
If a test is expected to fail, then retval is meaningless -> omit it
from the result arrays
If a test actually fails or was expected to fail, then there is no
point in checking retval
Improve error reporting
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
Any sufficiently advanced bug is indistinguishable from a feature.
-- from some indian guy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p20021220-vartest.diff.gz
Type: application/octet-stream
Size: 6969 bytes
Desc: p20021220-vartest.diff.gz
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20021220/03be50c4/p20021220-vartest.diff.obj
More information about the wine-patches
mailing list