[Mono-dev] System.MathTest.TestIEEERemainder fails
andreas.faerber at web.de
Tue Jun 10 07:39:57 EDT 2008
Am 10.06.2008 um 13:22 schrieb <nataraj.ramaswamy at wipro.com> <nataraj.ramaswamy at wipro.com
> Thanks for the immediate response. It would be really helpful if there
> are any links/references to recent test results for Sparc (version
> Or in other words, is there a possibility to know the list of test
> failures, known issues on Sparc.
The Wiki page lists one known test failure for Solaris/sparc iirc.
(mono-project.com appears to be down currently from here)
Apart from that, the usual procedure when something is broken is to
file a bug in Bugzilla, and if you've already fixed it, please also
attach the patch you propose rather than just describing it.
> -----Original Message-----
> From: Zoltan Varga [mailto:vargaz at gmail.com]
> Sent: Tuesday, June 10, 2008 4:20 PM
> To: Nataraj Ramaswamy (WT01 - Computing, Storage & Software Products)
> Cc: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] System.MathTest.TestIEEERemainder fails
> This is now fixed in SVN using your suggestion. Btw, some of our tests
> do fail on sparc, this is not a problem for most applications tough.
> 2008/6/10 <nataraj.ramaswamy at wipro.com>:
>> We have been able to successfully build Mono on Solaris 7 sparc (32
>> When we tried to execute the Class Library test suites, some of the
>> test cases were failing.
>> We need your expert inputs/suggestions on the following failure:
>> Under mcs/class/corlib, MonoTests.System.MathTest.TestIEEERemainder
>> fails with the error message:
>> Negative Dividend expected:<-9223372036854775808> but was:<128>
>> at MonoTests.System.MathTest.TestIEEERemainder () [0x000bf] in
>> at (wrapper managed-to-native)
>> at System.Reflection.MonoMethod.Invoke (System.Object obj,
>> BindingFlags invokeAttr, System.Reflection.Binder binder,
>> System.Object parameters, System.Globalization.CultureInfo culture)
>> [0x0003f] in
>> On analysing further, it is observed that:
>> - In System/Math.cs, IEEERemainder uses InternalInt64BitsToDouble.
>> Changing this to Int64BitsToDouble gave the expected result and the
> test case passed.
>> - InternalInt64BitsToDouble() uses SwappableToDouble() under
>> System/BitConverter.cs . Here it gets into (!IsLittleEndian) which
>> fills the value in the big endian (reverse) order whereas
>> Int64BitsToDouble uses
>> ToDouble() which doesnot perform this conversion based on endianness
>> We would like to know your valuable inputs on how to address this
>> issue for Solaris 7 sparc.
>> Please let us know whether it would be correct to use
>> Int64BitsToDouble instead of InternalInt64BitsToDouble (conditionally
>> built for Solaris 7 sparc).
>> Thanks & regards,
>> Please do not print this email unless it is absolutely necessary.
>> The information contained in this electronic message and any
>> attachments to this message are intended for the exclusive use of the
>> addressee(s) and may contain proprietary, confidential or privileged
>> information. If you are not the intended recipient, you should not
>> disseminate, distribute or copy this e-mail. Please notify the sender
>> immediately and destroy all copies of this message and any
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
>> viruses. The company accepts no liability for any damage caused by
>> virus transmitted by this email.
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
> Please do not print this email unless it is absolutely necessary.
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of
> the addressee(s) and may contain proprietary, confidential or
> privileged information. If you are not the intended recipient, you
> should not disseminate, distribute or copy this e-mail. Please
> notify the sender immediately and destroy all copies of this message
> and any attachments.
> WARNING: Computer viruses can be transmitted via email. The
> recipient should check this email and any attachments for the
> presence of viruses. The company accepts no liability for any damage
> caused by any virus transmitted by this email.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list