[Mono-bugs] [Bug 324181] ASN.1 date convertion unit tests fails

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 27 11:38:01 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=324181

User patriotyk at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=324181#c1


Serhiy Stetskovych <patriotyk at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |REOPENED
            Version|unspecified                 |SVN
           Platform|Other                       |i386
                 CC|                            |patriotyk at gmail.com
         Resolution|FIXED                       |
   Target Milestone|---                         |SVN
         OS/Version|Other                       |Linux




--- Comment #1 from Serhiy Stetskovych <patriotyk at gmail.com>  2009-04-27 09:37:58 MDT ---
(In reply to comment #0)
> 
> 
> ---- Reported by pacho at condmat1.ciencias.uniovi.es 2007-05-01 04:58:13 MST ----
> 
> Please fill in this template when reporting a bug, unless you know what you
> are doing.
> Description of Problem:
> Failures:
> 1) MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeBefore2000 : Expected
> 25.02.1957 16:36:49 has more than one second (3600,330984) difference with
> actual data 25.02.1957 15:36:49
>   at MonoTests.Mono.Security.ASN1ConvertTest.AssertDate (DateTime expected,
> DateTime actual, System.String message) [0x0002d] in
> /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:30
>   at MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeBefore2000 ()
> [0x0004c] in
> /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:45
>   at <0x00000> <unknown method>
>   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
> (object,object[])
>   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
> invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
> System.Globalization.CultureInfo culture) [0x00056] in
> /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:143
> 
> 2) MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2000 : Expected
> 25.02.2007 16:36:49 has more than one second (3600,363536) difference with
> actual data 25.02.2007 15:36:49
>   at MonoTests.Mono.Security.ASN1ConvertTest.AssertDate (DateTime expected,
> DateTime actual, System.String message) [0x0002d] in
> /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:30
>   at MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2000 ()
> [0x00042] in
> /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:58
>   at <0x00000> <unknown method>
>   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
> (object,object[])
>   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
> invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
> System.Globalization.CultureInfo culture) [0x00056] in
> /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:143
> 
> 3) MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2050 : Expected
> 25.02.2057 16:36:49 has more than one second (3600,366686) difference with
> actual data 25.02.2057 15:36:49
>   at MonoTests.Mono.Security.ASN1ConvertTest.AssertDate (DateTime expected,
> DateTime actual, System.String message) [0x0002d] in
> /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:30
>   at MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2050 ()
> [0x0004c] in
> /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:71
>   at <0x00000> <unknown method>
>   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
> (object,object[])
>   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
> invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
> System.Globalization.CultureInfo culture) [0x00056] in
> /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:143
> 
> Tests not run:
> 1) MonoTests.Mono.Security.Cryptography.KeyPairPersistenceTest.CspFlagsMachine
> : Access denied to key containers files.
> 2)
> MonoTests.Mono.Security.Cryptography.KeyPairPersistenceTest.CspFlagsDefaultMachine
> : Access denied to key containers files.
> 3) MonoTests.Mono.Security.X509.X501NameTest.FromString_UnrecognizedEncoding :
> # support isn't implemented
> 4) MonoTests.Mono.Security.X509.X501NameTest.FromString_MultiValued :
> multi-valued support isn't implemented
> 
> make[8]: *** [run-test-lib] Error 1
> 
> 
> 
> Steps to reproduce the problem:
> 1. 
> 2. 
> 3. 
> 
> Actual Results:
> 
> 
> Expected Results:
> 
> 
> How often does this happen? 
> 
> 
> Additional Information:
> 
> 
> 
> ---- Additional Comments From rolfkvinge at ya.com 2007-05-07 07:18:57 MST ----
> 
> Moving, this isn't a visual basic bug.
> 
> 
> 
> ---- Additional Comments From sebastien at ximian.com 2007-05-07 08:01:22 MST ----
> 
> I can't replicate this problem on my computers, for both 1.1 and 2.0
> profiles. Also none of the building bots (on several architectures)
> has this problem.
> 
> The convertion code use DateTime to do parts of it's calculation. It's
> possible that the real issue is hidden there (and only exposed on
> these tests).
> 
> Do you see any date related failures when running corlib's unit tests
> ? If so can you paste/attach them to this bug report ? please also
> include extra data like which profile (1.1 or 2.0) you used to execute
> the tests
> 
> If not can you supply more information about your environment, e.g.
> date format, time zone ...
> 
> Thanks
> 
> 
> 
> ---- Additional Comments From pacho at condmat1.ciencias.uniovi.es 2007-05-07
> 14:42:12 MST ----
> 
> We are having this problems under gentoo:
> http://bugs.gentoo.org/show_bug.cgi?id=168345
> 
> My timezone is Europe/Madrid
> 
> It also fails for me with the following:
> Tests not run:
> 1) MonoTests.System.CharCategoryTest.IsLetter : The dump file is huge,
> so avoided this test way.
> 2) MonoTests.System.CharCategoryTest.IsLetterOrDigit : The dump file
> is huge, so avoided this test way.
> 3) MonoTests.System.DateTimeTest.TestParse2 : need to fix tests that
> run on different timezones
> 4) MonoTests.System.Diagnostics.StackTraceTest.StackTrace_Thread_Null
> : Not supported in Mono
> 5)
> MonoTests.System.Diagnostics.StackTraceTest.StackTrace_Thread_NotSuspended
> : Not supported in Mono
> 6)
> MonoTests.System.Diagnostics.StackTraceTest.StackTrace_Thread_Suspended
> : Not supported in Mono
> 7) MonoTests.System.IO.DirectoryTest.MoveException4 : On IA64, causes
> nunit to abort due to https://bugzilla.novell.com/show_bug.cgi?id=MONO76388
> 8) MonoTests.System.IO.DirectoryTest.CreationTime : Unix doesn't
> support CreationTime
> 9) MonoTests.System.IO.FileTest.TestRWAT : Method TestRWAT's signature
> is not correct: it must be a public method.
> 10) MonoTests.System.IO.PathTest.TestGetFullPath : This does not work
> under windows. See ERROR comments below.
> 11)
> MonoTests.System.Reflection.Emit.FieldBuilderTest.TestGetCustomAttributesComplete
> : mono supports this
> 12)
> MonoTests.System.Reflection.Emit.FieldBuilderTest.TestGetCustomAttributesOfTypeComplete
> : mono supports this
> 13)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetEventsIncomplete
> : mcs depends on this
> 14)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetEventsFlagsIncomplete
> : mcs depends on this
> 15)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetEventIncomplete
> : mcs depends on this
> 16)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetEventFlagsIncomplete
> : mcs depends on this
> 17)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetFieldsIncomplete
> : mcs depends on this
> 18)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetFieldsFlagsIncomplete
> : mcs depends on this
> 19)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetFieldIncomplete
> : mcs depends on this
> 20)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetFieldFlagsIncomplete
> : mcs depends on this
> 21)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetPropertiesIncomplete
> : mcs depends on this
> 22)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetPropertiesFlagsIncomplete
> : mcs depends on this
> 23)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetMethodsIncomplete
> : mcs depends on this
> 24)
> MonoTests.System.Reflection.Emit.TypeBuilderTest.TestGetMethodsFlagsIncomplete
> : mcs depends on this
> 25) MonoTests.System.Reflection.ModuleTest.ResolveString : it breaks
> nunit-console.exe execution under .NET 2.0
> 26)
> MonoTests.System.Resources.ResourceReaderTest.ConstructorString_Bad :
> Not covered in the docs, not sure what the correct behavior should be
> for this
> 27)
> MonoTests.System.Security.Cryptography.DSACryptoServiceProviderTest.KeyGeneration
> : Much too long (with MS as Mono doesn't generates the keypair unless
> it need it)
> 28)
> MonoTests.System.Security.Cryptography.RSACryptoServiceProviderTest.KeyGeneration
> : Much too long (with MS as Mono doesn't generates the keypair unless
> it need it)
> 29)
> MonoTests.System.Security.Permissions.FileIOPermissionTest.ShortToLong
> : should compatibility go that far ?
> 30)
> MonoTests.System.Security.Permissions.PublisherIdentityPermissionAttributeTest.SignedFile
> : CreateFromSignedFile isn't finished yet
> 31) MonoTests.System.StringTest.TestSbytePtrConstructorInvalid4 :
> Runtime throws NullReferenceException instead of AccessViolationException
> 32) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow1 :
> Blocked by mcs https://bugzilla.novell.com/show_bug.cgi?id=MONO78899
> 33) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow2 :
> Blocked by mcs https://bugzilla.novell.com/show_bug.cgi?id=MONO78899
> 34) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow3 :
> Blocked by mcs https://bugzilla.novell.com/show_bug.cgi?id=MONO78899
> 35) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow4 :
> Blocked by mcs https://bugzilla.novell.com/show_bug.cgi?id=MONO78899
> 36) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow5 :
> Blocked by mcs https://bugzilla.novell.com/show_bug.cgi?id=MONO78899
> 37) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow6 :
> Blocked by mcs https://bugzilla.novell.com/show_bug.cgi?id=MONO78899
> 38) MonoTests.System.TimeSpanTest.MaxHours_TooLong : too long
> 39) MonoTests.System.TimeSpanTest.MinHours_TooLong : too long
> 40) MonoTests.System.TimeSpanTest.MaxMinutes_TooLong : too long
> 41) MonoTests.System.TimeSpanTest.MinMinutes_TooLong : too long
> 
> make[8]: *** [run-test-lib] Error 1
> make[8]: se sale del directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib'
> make[7]: *** [do-run-test] Error 1
> make[7]: se sale del directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib'
> make[6]: *** [run-test-recursive] Error 1
> make[6]: se sale del directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs'
> make[6]: se ingresa al directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs'
> make[6]: se sale del directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs'
> make[5]: *** [do-run-test] Error 1
> make[5]: se sale del directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs'
> make[4]: *** [profiles-do--run-test] Error 1
> make[4]: se sale del directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs'
> make[3]: *** [mcs-do-run-test-profiles] Error 2
> make[3]: se sale del directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/runtime'
> make[2]: *** [check-local] Error 2
> make[2]: se sale del directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/runtime'
> make[1]: *** [check-am] Error 2
> make[1]: se sale del directorio
> `/var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/runtime'
> make: *** [check-recursive] Error 1
> 
> 
> 
> 
> 
> ---- Additional Comments From sebastien at ximian.com 2007-05-07 14:51:31 MST ----
> 
> Please don't re-open issues unless you answer *all* the required
> information. I still don't know if this applies to 1.1, 2.0 or both
> profiles.
> 
> Also your log only shows tests that weren't executed (ignored) which
> is totally normal and harmless. However something else must have
> failed previously or this wouldn't end with:
> make[8]: *** [run-test-lib] Error 1
> 
> 
> 
> ---- Additional Comments From pacho at condmat1.ciencias.uniovi.es 2007-05-07
> 15:41:51 MST ----
> 
> Seems a permission problem because of a fail in gentoo mono ebuild, I
> will close the bug (and reopen if this still fails when this
> permission problem is fixed by gentoo)
> 
> Thanks and sorry for the inconvenience
> 
> 
> Unknown bug field "cf_op_sys_details" encountered while moving bug
>    <cf_op_sys_details>Gentoo</cf_op_sys_details>
> Unknown operating system other. Setting to default OS "Other".

It is not permission problem.
Issue is reproducible only if your local time differs of UTC time.
And was tested on x86 Fedora Linux and MIPS64 Gentoo Linux, the result in both
was the same.

Steps to reproduce

1. Be sure that yours local time is not equivalent of UTC time. To check this,
compare result of '/sbin/hwclock --utc' and '/sbin/hwclock --localtime', they
should be different(in hours, not seconds), if not, try to change your time
zone.

2. Get latest mono sources from svn trunk repository and build it, after that
execute command
'make check' in main mono directory or go to mcs/class/Mono.Security and run it
there.

Expected Results:

Tests should passes with no failures

Actual Results:

The flowing errors are displayed:

Tests run: 611, Failures: 3, Not run: 40, Time: 395.030 seconds

Test Case Failures:
1) MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2000 : Expected
04/27/2009 16:23:01 has more than one second (10800.072283) difference with
actual data 04/27/2009 13:23:01
at MonoTests.Mono.Security.ASN1ConvertTest.AssertDate (DateTime expected,
DateTime actual, System.String message) [0x0002d] in
/.root0/local/home/sstetskovych/mono_new/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:30
at MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2000 ()
[0x00026] in
/.root0/local/home/sstetskovych/mono_new/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:58
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x000ca] in
/.root0/local/home/sstetskovych/mono_new/mcs/class/corlib/System.Reflection/MonoMethod.cs:169

2) MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2050 : Expected
04/27/2059 16:23:01 has more than one second (7200.785183) difference with
actual data 04/27/2059 14:23:01
at MonoTests.Mono.Security.ASN1ConvertTest.AssertDate (DateTime expected,
DateTime actual, System.String message) [0x0002d] in
/.root0/local/home/sstetskovych/mono_new/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:30
at MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2050 ()
[0x00030] in
/.root0/local/home/sstetskovych/mono_new/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:71
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x000ca] in
/.root0/local/home/sstetskovych/mono_new/mcs/class/corlib/System.Reflection/MonoMethod.cs:169

3) MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeBefore2000 : Expected
04/27/1959 16:23:02 has more than one second (7200.022825) difference with
actual data 04/27/1959 14:23:02
at MonoTests.Mono.Security.ASN1ConvertTest.AssertDate (DateTime expected,
DateTime actual, System.String message) [0x0002d] in
/.root0/local/home/sstetskovych/mono_new/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:30
at MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeBefore2000 ()
[0x00030] in
/.root0/local/home/sstetskovych/mono_new/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:45
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x000ca] in
/.root0/local/home/sstetskovych/mono_new/mcs/class/corlib/System.Reflection/MonoMethod.cs:169


Reproducibility:
Always.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list