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:25:26 UTC

[jira] Created: (HARMONY-4287) [classlib][build] failures in MathTest and StrictMathTest if classlib is compiled in RELEASE mode

[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.


[jira] Commented: (HARMONY-4287) [classlib][build] failures in MathTest and StrictMathTest if classlib is compiled in RELEASE mode

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508447 ] 

Stepan Mishura commented on HARMONY-4287:
-----------------------------------------

Alexei - I've applied your patch to LUNI module at r551075. 
Please check that the patch was applied as you expected.

> [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
>         Attachments: H4287.patch
>
>
> 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.


[jira] Commented: (HARMONY-4287) [classlib][build] failures in MathTest and StrictMathTest if classlib is compiled in RELEASE mode

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (HARMONY-4287) [classlib][build] failures in MathTest and StrictMathTest if classlib is compiled in RELEASE mode

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-4287:
-------------------------------------

    Attachment: H4287.patch

> [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
>         Attachments: H4287.patch
>
>
> 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.


[jira] Closed: (HARMONY-4287) [classlib][build] failures in MathTest and StrictMathTest if classlib is compiled in RELEASE mode

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov closed HARMONY-4287.
------------------------------------

    Resolution: Fixed

Looks good. Thanks Stepan.

> [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
>         Attachments: H4287.patch
>
>
> 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.