[Mono-bugs] [Bug 324181] ASN.1 date convertion unit tests fails
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Feb 2 04:03:12 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=324181
http://bugzilla.novell.com/show_bug.cgi?id=324181#c2
--- Comment #2 from Peter Dettman <peter.dettman at iinet.net.au> 2010-02-02 09:03:09 UTC ---
Created an attachment (id=340144)
--> (http://bugzilla.novell.com/attachment.cgi?id=340144)
Patch to fix the code of the affected test cases
The problem is in the test case itself.
I checked that my localtime differs from UTC, as described above. I was able to
reproduce the test failures using 'make check' in Mono.Security.
The reason the tests fail is that the ASN1Convert.ToDateTime method returns a
UTC DateTime (the extra test for profile 2.0 confirms this), and this needs to
be converted back to local time before comparing with the original 'expected'
value, which the attached patch does.
'make check' confirms the test cases now pass.
--
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