[Mono-devel-list] Re: [Mono-patches] r46615 - trunk/mcs/class/System.Data/Test/System.Data

Eyal Alaluf eyala at mainsoft.com
Tue Jun 28 13:23:25 EDT 2005


Hi, Ben.

As I said we have a problem. It works fine for me, I looked at the test and it
does not use 10000 as a year (it uses 2000). Something is wrong.
Also, did you commit all the changes? I get a ton of erros about SqlMoney
(which I don't understand at all, the code looks perfectly innocent).
I am using Windows and Cygwin, and you are probably using Linux. The failures
I am getting are:
Failures:
1) MonoTests.System.Data.SqlTypes.SqlBooleanTest.ToSqlMoney : ToSqlMoney method does not work correctly
	expected:<1.0000>
	 but was:<100000000000000000001.0000>
in <0x000e3> MonoTests.System.Data.SqlTypes.SqlBooleanTest:ToSqlMoney ()
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00062> System.Reflection.MonoMethod:Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)

2) MonoTests.System.Data.SqlTypes.SqlBooleanTest.SqlMoneyToSqlBoolean : System.OverflowException : Number overflow.
in <0x00050> System.Decimal:s64 (Decimal value)
in <0x00028> System.Decimal:op_Explicit (Decimal val)
in <0x00057> System.Data.SqlTypes.SqlBoolean:op_Explicit (SqlMoney x)
in <0x0005a> MonoTests.System.Data.SqlTypes.SqlBooleanTest:SqlMoneyToSqlBoolean ()
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00062> System.Reflection.MonoMethod:Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)

and many more similar failures.

Eyal.

On Tue, 28 Jun 2005, Ben Maurer wrote:

> Date: Tue, 28 Jun 2005 12:57:55 -0400
> From: Ben Maurer <bmaurer at ximian.com>
> To: Eyal Alaluf <eyala at mainsoft.com>
> Cc: Kostantin Triger <kostat at mainsoft.com>, mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-devel-list] Re: [Mono-patches] r46615 -
>     trunk/mcs/class/System.Data/Test/System.Data
>
> On Tue, 2005-06-28 at 19:51 +0300, Eyal Alaluf wrote:
> > Hi, Ben.
> >
> > I believe that we have an issue to resolve here. I never got this particular
> > error and I believe that you have a problem on your side. Specifically, I
> > don't get any failures like that for the following tests:
> > -		[Category ("NotWorking")]
> >  		public void ReadXml_Strg()
> > -		[Category ("NotWorking")]
> >  		public void ReadXml_Strm()
> > -		[Category ("NotWorking")]
> >  		public void ReadXml_ByTextReader()
> > -		[Category ("NotWorking")]
> >  		public void ReadXml_ByXmlReader()
> >
> [benm at omega System.Data]$ svn di
> Index: Test/System.Data/DataSetTest2.cs
> ===================================================================
> --- Test/System.Data/DataSetTest2.cs    (revision 46656)
> +++ Test/System.Data/DataSetTest2.cs    (working copy)
> @@ -1851,7 +1851,7 @@
>                 }
>
>                 [Test]
> -               [Category ("NotWorking")]
> +               //[Category ("NotWorking")]
>                 public void ReadXml_Strg()
>                 {
>                         string sTempFileName = "tmpDataSet_ReadWriteXml_43894.xml"  ;
> [benm at omega System.Data]$ make run-test
> ok=:; make run-test-recursive || ok=false; make run-test-local || ok=false; $ok
> make[1]: Entering directory `/home/benm/msvn/mcs/class/System.Data'
> make[1]: Leaving directory `/home/benm/msvn/mcs/class/System.Data'
> make[1]: Entering directory `/home/benm/msvn/mcs/class/System.Data'
> MONO_PATH="../../class/lib/default:$MONO_PATH" /home/benm/msvn/mono/runtime/mono-wrapper  ../../class/lib/default/mcs.exe   -d:NET_1_1 -d:ONLY_1_1 -debug /target:library /out:System.Data_test_default.dll /r:../../class/lib/default/System.Data.dll -r:../../class/lib/default/nunit.framework.dll -r:../../class/lib/default/nunit.core.dll -r:../../class/lib/default/nunit.util.dll /nowarn:649 /nowarn:169 /nowarn:219 /nowarn:168 /nowarn:1595 /r:mscorlib.dll /r:../../class/lib/default/System.dll /r:System.Xml.dll /r:System.EnterpriseServices.dll /r:Mono.Data.Tds.dll  /nowarn:618 @../../build/deps/System.Data_test_default.dll.response
> Test/System.Data.Tests.Mainsoft/GHTUtils/DbTypeParameter.cs(257) warning CS0162: Unreachable code detected
> Test/System.Data.Tests.Mainsoft/GHTUtils/DbTypeParameter.cs(265) warning CS0162: Unreachable code detected
> Test/System.Data.Tests.Mainsoft/GHTUtils/DbTypeParameter.cs(269) warning CS0162: Unreachable code detected
> Test/System.Data.Tests.Mainsoft/GHTUtils/DbTypeParameter.cs(273) warning CS0162: Unreachable code detected
> Test/System.Data.Tests.Mainsoft/GHTUtils/DbTypeParameter.cs(277) warning CS0162: Unreachable code detected
> Test/System.Data.Tests.Mainsoft/GHTUtils/DbTypeParameter.cs(281) warning CS0162: Unreachable code detected
> Test/System.Data.Tests.Mainsoft/GHTUtils/DbTypeParameter.cs(285) warning CS0162: Unreachable code detected
> Compilation succeeded - 7 warning(s)
> ok=:; \
> MONO_PATH="../../class/lib/default::$MONO_PATH" /home/benm/msvn/mono/runtime/mono-wrapper --debug ../../class/lib/default/nunit-console.exe   /output:TestResult-default.log /exclude:NotWorking,ValueAdd,CAS,InetAccess /xml:TestResult-default.xml  System.Data_test_default.dll || ok=false; \
> sed '1,/^Tests run: /d' TestResult-default.log; \
> $ok
> NUnit version 2.2.0
> Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole.
> Copyright (C) 2000-2003 Philip Craig.
> All Rights Reserved.
>
> OS Version: Unix 2.6.11.1    Mono Version: 1.1.4322.573
>
> Excluded categories: NotWorking,ValueAdd,CAS,InetAccess
> ..................................................................................................................................................................................................................................................................................................N..........................................................................................................................N..N.N.............................................................N.........................................N.N....................................................................................................................N....N..............................N...........................................N....................N..............................................................................................................................................................F.....................................................................................!
 .........................................................................................................................................................................
>
> Tests run: 1131, Failures: 1, Not run: 12, Time: 12.614229 seconds
>
>
> Failures:
> 1) MonoTests_System.Data.DataSetTest2.ReadXml_Strg : System.ArgumentOutOfRangeException : 10000 is not in a range between 1 and 9999.
> Parameter name: year
> in [0x000f2] System.CurrentTimeZone:GetDaylightChanges (Int32 year)
> in [0x00009] (at /home/benm/msvn/mcs/class/corlib/System/TimeZone.cs:78) System.TimeZone:IsDaylightSavingTime (DateTime time)
> in [0x00002] (at /home/benm/msvn/mcs/class/corlib/System/TimeZone.cs:213) System.CurrentTimeZone:GetUtcOffset (DateTime time)
> in [0x0001f] (at /home/benm/msvn/mcs/class/corlib/System/DateTime.cs:232) System.DateTime:.ctor (Boolean local, Int64 newticks)
> in [0x00d3d] (at /home/benm/msvn/mcs/class/corlib/System/DateTime.cs:1308) System.DateTime:_DoParse (System.String s, System.String format, Boolean exact, System.DateTime result, System.Globalization.DateTimeFormatInfo dfi, DateTimeStyles style, System.Boolean longYear)
> in [0x00013] (at /home/benm/msvn/mcs/class/corlib/System/DateTime.cs:1351) System.DateTime:ParseExact (System.String s, System.String[] formats, System.Globalization.DateTimeFormatInfo dfi, DateTimeStyles style, System.DateTime ret, Boolean exact, System.Boolean longYear)
> in [0x00047] (at /home/benm/msvn/mcs/class/corlib/System/DateTime.cs:1337) System.DateTime:ParseExact (System.String s, System.String[] formats, IFormatProvider fp, DateTimeStyles style)
> in [0x0000a] (at /home/benm/msvn/mcs/class/System.XML/System.Xml/XmlConvert.cs:312) System.Xml.XmlConvert:ToDateTime (System.String s, System.String[] formats)
> in [0x00006] (at /home/benm/msvn/mcs/class/System.XML/System.Xml/XmlConvert.cs:282) System.Xml.XmlConvert:ToDateTime (System.String s)
> in [0x0007b] (at /home/benm/msvn/mcs/class/System.Data/System.Data/XmlDataReader.cs:358) System.Data.XmlDataReader:StringToObject (System.Type type, System.String value)
> in [0x000df] (at /home/benm/msvn/mcs/class/System.Data/System.Data/XmlDataReader.cs:304) System.Data.XmlDataReader:ReadElementElement (System.Data.DataRow row)
> in [0x00044] (at /home/benm/msvn/mcs/class/System.Data/System.Data/XmlDataReader.cs:240) System.Data.XmlDataReader:ReadElementContent (System.Data.DataRow row)
> in [0x000a4] (at /home/benm/msvn/mcs/class/System.Data/System.Data/XmlDataReader.cs:213) System.Data.XmlDataReader:ReadElement (System.Data.DataRow row)
> in [0x00097] (at /home/benm/msvn/mcs/class/System.Data/System.Data/XmlDataReader.cs:188) System.Data.XmlDataReader:ReadDataSetContent ()
> in [0x0009d] (at /home/benm/msvn/mcs/class/System.Data/System.Data/XmlDataReader.cs:161) System.Data.XmlDataReader:ReadTopLevelElement ()
> in [0x00062] (at /home/benm/msvn/mcs/class/System.Data/System.Data/XmlDataReader.cs:120) System.Data.XmlDataReader:Process ()
> in [0x00008] (at /home/benm/msvn/mcs/class/System.Data/System.Data/XmlDataReader.cs:92) System.Data.XmlDataReader:ReadXml (System.Data.DataSet dataset, System.Xml.XmlReader reader, XmlReadMode mode)
> in [0x003e4] (at /home/benm/msvn/mcs/class/System.Data/System.Data/DataSet.cs:1056) System.Data.DataSet:ReadXml (System.Xml.XmlReader reader, XmlReadMode mode)
> in [0x00003] (at /home/benm/msvn/mcs/class/System.Data/System.Data/DataSet.cs:860) System.Data.DataSet:ReadXml (System.Xml.XmlReader r)
> in [0x00009] (at /home/benm/msvn/mcs/class/System.Data/System.Data/DataSet.cs:846) System.Data.DataSet:ReadXml (System.String str)
> in [0x00170] (at /home/benm/msvn/mcs/class/System.Data/Test/System.Data/DataSetTest2.cs:1880) MonoTests_System.Data.DataSetTest2:ReadXml_Strg ()
> in <0x00000> <unknown method>
> in (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
> in [0x00044] (at /home/benm/msvn/mcs/class/corlib/System.Reflection/MonoMethod.cs:127) System.Reflection.MonoMethod:Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
>
> -- Ben
>
>




More information about the Mono-devel-list mailing list