You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/06/26 19:41:26 UTC
[jira] Commented: (HARMONY-4287) [classlib][build] failures in
MathTest and StrictMathTest if classlib is compiled in RELEASE mode
[ https://issues.apache.org/jira/browse/HARMONY-4287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508255 ]
Alexei Zakharov commented on HARMONY-4287:
------------------------------------------
Looks like the reason of these failures lies in fdlibm build files. As far as I can see the original intent was to compile all fdlibm's source files with optimization level set to "-O0" rather than "-O1" when release mode is specified. Most likely the reason was that O1 optimizations corrupt tricky logic of fdlibm natives. However, there was a typo in modules/luni/src/main/native/fdlibm/unix/makefile that prevents passing the correct "-O0" switch to compiler. Attached patch should fix this problem.
> [classlib][build] failures in MathTest and StrictMathTest if classlib is compiled in RELEASE mode
> -------------------------------------------------------------------------------------------------
>
> Key: HARMONY-4287
> URL: https://issues.apache.org/jira/browse/HARMONY-4287
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Linux
> Reporter: Alexei Zakharov
> Assignee: Alexei Zakharov
>
> Currently two tests from org.apache.harmony.luni.tests.java.lang.StrictMathTest fail and three tests from org.apache.harmony.luni.tests.java.lang.MathTest fail with about the same log if are run on top of the RELEASE version of Harmony classlib:
> test_log1p_D
> Failure
> Should return 0.4633708685409921 expected:<0.4633708685409921> but was:<0.46337086854099213>
> junit.framework.AssertionFailedError: Should return 0.4633708685409921 expected:<0.4633708685409921> but was:<0.46337086854099213>
> at org.apache.harmony.luni.tests.java.lang.StrictMathTest.test_log1p_D(StrictMathTest.java:393)
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.