Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168345 - dev-lang/mono-1.2.3.1 fails on a few tests
Summary: dev-lang/mono-1.2.3.1 fails on a few tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: dotnet project
URL: http://bugzilla.ximian.com/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-25 16:41 UTC by Carsten Lohrke (RETIRED)
Modified: 2007-06-26 22:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2007-02-25 16:41:29 UTC
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
Comment 1 Pacho Ramos gentoo-dev 2007-04-09 19:41:54 UTC
Have you tried to send a bug to upstream?
http://www.mono-project.com/Bugs
Comment 2 Pacho Ramos gentoo-dev 2007-05-01 08:58:50 UTC
I have just sent it to upstream
Comment 3 Pacho Ramos gentoo-dev 2007-05-07 18:35:28 UTC
Upstream says that they cannot reproduce this bug
http://bugzilla.ximian.com/show_bug.cgi?id=81503

Upstream reply:

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

_____

Comment 4 Pacho Ramos gentoo-dev 2007-05-07 19:37:01 UTC
There are many permissions problems because tests want to access to /root/:


75) MonoTests.System.Security.Cryptography.DSACryptoServiceProviderTest.ConstructorKeySizeCspParameters : System.Security.Cryptography.CryptographicException : Could not create user key store '/root/.config/.mono/keypairs'.
  ----> System.UnauthorizedAccessException : Access to the path "/root/.config" is denied.
  at Mono.Security.Cryptography.KeyPairPersistence.get_UserPath () [0x00090] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs:224 
  at Mono.Security.Cryptography.KeyPairPersistence.get_Filename () [0x0007b] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs:141 
  at Mono.Security.Cryptography.KeyPairPersistence.Load () [0x00000] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs:167 
  at System.Security.Cryptography.DSACryptoServiceProvider..ctor (Int32 dwKeySize, System.Security.Cryptography.CspParameters parameters) [0x000ae] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.Security.Cryptography/DSACryptoServiceProvider.cs:108 
  at MonoTests.System.Security.Cryptography.DSACryptoServiceProviderTest.ConstructorKeySizeCspParameters () [0x0000e] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Test/System.Security.Cryptography/DSACryptoServiceProviderTest.cs:137 
  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 
--CryptographicException
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0006e] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:118 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0009f] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:88 
  at System.IO.DirectoryInfo.Create () [0x00000] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/DirectoryInfo.cs:121 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:99 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0009f] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:88 
  at System.IO.DirectoryInfo.Create () [0x00000] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/DirectoryInfo.cs:121 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:99 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0009f] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:88 
  at Mono.Security.Cryptography.KeyPairPersistence.get_UserPath () [0x00063] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs:218 



Seems like bug 146967 , access to /root/.config is needed by mono tests
Comment 5 Jurek Bartuszek (RETIRED) gentoo-dev 2007-06-26 22:48:53 UTC
Those problems have been fixed in portage since 1.2.4, thanks