HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0133 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 0133.


Report 0133 Actions


    Problem Report Number 0133
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0133
    Raised 1994-01-12 08:00
    Updated 2003-03-13 08:00
    Published 1994-01-19 08:00
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.2.4
    Test Identification XOPEN.os/maths/hypot 3
    Problem Summary TSD4.133 In accordance with the IEEE 754-1985 specification, NaN is a valid boundary value. In support of IEEE, when hypot() is called with x or y set to NaN, the implementation returns NaN and errno is not se...
    Problem Text
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

    In accordance with the IEEE 754-1985 specification, NaN is a valid
    boundary value. In support of IEEE, when hypot() is called with
    x or y set to NaN, the implementation returns NaN and errno is not
    set. The XPG4 specification states that hypot() "may" fail if the
    value of x or y is NaN, and "may" set the errno to EDOM. However,
    in the hypot() test, if TEST_XPG is > 3 and NaN is returned, the
    errno is required to be set to EDOM. We believe this to be an error
    in the test suite. As well, other math interfaces (e.g. erf, ceil,
    exp, floor, etc.) are specified by XPG4 to behave the same as hypot()
    in the case of NaN passed as an input parameter. These interfaces
    behave in the same way as hypot() and all pass their respective tests.

    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Test Output
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    /tset/XOPEN.os/maths/hypot/T.hypot 3 Failed

    Test Description:
    If the implementation supports NaN then, hypot() when called with
    values of x or y set to NaN, returns NaN and errno may be set to EDOM

    Test Strategy:
    CALCULATE floating point constants using mlmachar().
    CREATE child
    REASSIGN stderr to /dev/null to avoid error output from maths
    functions.
    CALCULATE NaN by using the return value of sqrt(-1.0) and by
    verifying that isnan(sqrt(-1.0)) returns non-zero.
    VERIFY hypot() with either argument set to NaN, returns NaN and may
    set errno to EDOM.

    Test Information:
    ERRNO VALUES: expected: 33 (EDOM), observed: 0 (NO ERROR)
    ERRNO VALUES: expected: 33 (EDOM), observed: 0 (NO ERROR)

    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is an accepted test suite deficiency in release 4.2.4.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed test suite deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority