OLEAUT32/tests: don't convert bad strings
Saulius Krasuckas
saulius2 at ar.fi.lt
Mon Aug 8 06:42:24 CDT 2005
Log message:
Saulius Krasuckas <saulius2 at ar.fi.lt>
Commen out VarDateFromStr() calls that generate exceptions on
WinME.
Index: dlls/oleaut32/tests/vartype.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/tests/vartype.c,v
retrieving revision 1.29
diff -p -u -r1.29 vartype.c
--- dlls/oleaut32/tests/vartype.c 3 Aug 2005 11:03:05 -0000 1.29
+++ dlls/oleaut32/tests/vartype.c 8 Aug 2005 11:40:03 -0000
@@ -3275,9 +3275,15 @@ static const char *BadDateStrings[] =
"1.2.3 4.5 6", "1.2.3 4 5.6", "1.2 3.4.5.6", "1.2 3.4.5 6", "1.2 3.4 5.6",
"1.2 3.4 5 6", "1.2 3 4.5.6", "1.2 3 4.5 6", "1.2 3 4 5.6", "1.2 3 4 5 6",
"1 2.3.4.5.6", "1 2.3.4.5 6", "1 2.3.4 5.6", "1 2.3.4 5 6", "1 2.3 4.5.6",
+#if 0
+ /* following throws an exception on winME */
"1 2.3 4.5 6", "1 2.3 4 5.6", "1 2.3 4 5 6", "1 2 3.4.5.6", "1 2 3.4.5 6",
+#endif
"1 2 3.4 5.6", "1 2 3.4 5 6", "1 2 3 4.5 6", "1 2 3 4 5.6", "1 2 3 4 5 6",
+#if 0
+ /* following throws an exception on winME */
"1.2.3 4 am 5 6", "1.2.3 4 5 am 6", "1.2.3 4 5 6 am", "1 am 2 3 4.5.6",
+#endif
"1 2 am 3 4.5.6", "1 2 3 am 4.5.6"
};
@@ -3382,7 +3388,10 @@ static void test_VarDateFromStr(void)
/* 5 elements - interpreted as 2 & 3 digit date/times */
DFS("1.2.3 4 5"); MKRELDATE(5,4); relative += 0.04309027778; EXPECT_DBL(relative);
DFS("1.2 3 4 5"); EXPECT_DBL(38415.04305555556);
+#if 0
+ /* following throws an exception on winME */
DFS("1 2 3.4.5"); MKRELDATE(2,1); relative += 0.12783564815; EXPECT_DBL(relative);
+#endif
DFS("1 2 3 4.5"); EXPECT_DBL(37623.17013888889);
/* 6 elements - interpreted as 3 digit date/times */
DFS("1.2.3 4 5 6"); EXPECT_DBL(38812.04309027778);
More information about the wine-patches
mailing list