|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2362 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 2362.
Report 2362 Actions
Problem Report Number 2362 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1220 Raised 2004-04-21 01:46 Updated 2004-04-30 14:26 Published 2004-04-30 14:26 Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSU version 5.2.5 Test Identification CAPI.os/maths/scalb 8, 9 Specification Base Definitions Issue 6 Linked Problem Reports 2355 Problem Summary scalb tests 8c and 9c testing functionality of scalb which is not
specified.Problem Text CAPI.os/maths/scalb tests 8c and 9c which is not specified by SUSv2 or
SUSv3.
These tests exercises a corner case of scalb(x, n) when n is
non-integral. We return NaN as long as n is non-integral, yet the test
expects +/-Inf as long as x is +/-Inf and n is not -Inf.
From the specification:
The scalb() function shall compute x*r^n, where r is the radix of
the machine's floating-point arithmetic. When r is 2, scalb() shall
be equivalent to ldexp() .
If the second floating-point input argument n is non-integral,
scalb(x, n) cannot possibly be equivalent to ldexp(x, i) because ldexp()
takes as its second argument an int.
Also from the specification:
APPLICATION USAGE
IEEE Std 1003.1-2001 only defines the behavior for the scalb()
function when the n argument is an integer, a NaN, or Inf. The
behavior of other values for the n argument is unspecified.Test Output
****************************************************************************************************************
/tset/CAPI.os/maths/scalb/T.scalb 8 Failed
Test Description:
Base Conditional Conformance
If the implementation supports Inf:
A call to double scalb(double x, double n) when x is +Inf shall
return
x.
Test Information:
PREP: Check for Inf support
PREP: Get VSU_SUPPORTS_INFINITY configuration variable
TEST: scalb() returns correct value
ERROR: scalb() incorrect
Expected Infinity, Received nan
****************************************************************************************************************
****************************************************************************************************************
/tset/CAPI.os/maths/scalb/T.scalb 9 Failed
Test Description:
Base Conditional Conformance
If the implementation supports Inf:
A call to double scalb(double x, double n) when x is -Inf shall
return
x.
Test Information:
PREP: Check for Inf support
PREP: Get VSU_SUPPORTS_INFINITY configuration variable
TEST: scalb() returns correct value
ERROR: scalb(inf, n) incorrect:
Expected -Infinity, Received nan
****************************************************************************************************************Review Information
Review Type TSMA Review Start Date 2004-04-21 01:46 Last Updated 2004-04-21 18:59 Completed 2004-04-21 18:59 Status Complete Review Recommendation Test Suite Deficiency (TSD) Review Response This is accepted as a fault in the test suite.
Review Type SA Review Start Date 2004-04-21 17:59 Last Updated 2004-04-28 01:04 Completed 2004-04-28 01:04 Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion This PR represents and agreed test suite deficiency
Problem Reporting System Options:
- View Report 2362
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority