|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2308 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 2308.
Report 2308 Actions
Problem Report Number 2308 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1184 Raised 2004-01-22 23:34 Updated 2004-01-27 14:42 Published 2004-01-27 14:42 Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSX4 version 4.5.4 Test Identification ANSI.os/genuts/strtod_X tests 9,10
XPG4.os/wgenuts/wcstod tests 9.10Specification Base Definitions Issue 6 Location in Spec none Linked Problem Reports our, VSX4, Bug, Report, 0022 Problem Summary tests fail if infinity is representable Problem Text These tests expect that infinity is not representable on
implementations that do not support IEC 60559. But on our implementation
which does not support IEC 559, infinity is representable and
strtod(INFINITY,NULL) produces inf with errno = 0. Since infinity is
representable, no ERANGE will be produced.
This was accepted as testcase bug, prior to the PR system coming online.
Requesting a TSD until the next version of VSX4 is released.Test Output
************************************************************************
/tset/ANSI.os/genuts/strtod_X/T.strtod_X 9 Failed
Test Description:
If the implementation supports IEC 60559 Infinity:
When the subject sequence contains a case-insensitive match for
one of "INF", "+INF", "INFINITY" or "+INFINITY", then strtod()
converts the subject sequence into the value +Inf.
Otherwise:
When the subject sequence contains a case-insensitive match for
one of "INF", "+INF", "INFINITY" or "+INFINITY", then strtod()
returns HUGE_VAL and sets errno to ERANGE.
Testing Requirement(s): Test with all uppercase, all lowercase, and
mixed-case strings.
Note: This test is only executed in UNIX03 and POSIX01 modes.
Test Strategy:
FOR various strings representing positive infinity:
CALL strtod() using the string representing infinity.
If the implementation supports IEC 60559 Infinity:
VERIFY that it returns positive infinity.
Otherwise:
VERIFY it returns HUGE_VAL.
VERIFY that strtod() set errno to ERANGE.
Test Information:
strtod("INF", NULL) set errno to 0 (NO ERROR), expecting 34 (ERANGE)
strtod("+INF", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("INFINITY", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("+INFINITY", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("inf", NULL) set errno to 0 (NO ERROR), expecting 34 (ERANGE)
strtod("+inf", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("infinity", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("+infinity", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("iNf", NULL) set errno to 0 (NO ERROR), expecting 34 (ERANGE)
strtod("+InF", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("iNFiNIty", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("+INfIniTy", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
************************************************************************
************************************************************************
/tset/ANSI.os/genuts/strtod_X/T.strtod_X 10 Failed
Test Description:
If the implementation supports IEC 60559 Infinity:
When the subject sequence contains a case-insensitive match for
"-INF" or "-INFINITY", then strtod() converts the subject
sequence
into the value -Inf.
Otherwise:
When the subject sequence contains a case-insensitive match for
"-INF" or "-INFINITY", then strtod() returns -HUGE_VAL and sets
errno to ERANGE.
Testing Requirement(s): Test with all uppercase, all lowercase, and
mixed-case strings.
Note: This test is only executed in UNIX03 and POSIX01 modes.
Test Strategy:
FOR various strings representing negative infinity:
CALL strtod() using the string representing infinity.
If the implementation supports IEC 60559 Infinity:
VERIFY that it returns negative infinity.
Otherwise:
VERIFY it returns -HUGE_VAL.
VERIFY that strtod() set errno to ERANGE.
Test Information:
strtod("-INF", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("-INFINITY", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("-inf", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("-infinity", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("-InF", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
strtod("-INfIniTy", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
************************************************************************
************************************************************************
/tset/XPG4.os/wgenuts/wcstod/T.wcstod 9 Failed
Test Description:
If the implementation supports IEC 60559 Infinity:
When the subject sequence contains a case-insensitive match for
one of L"INF", L"+INF", L"INFINITY" or L"+INFINITY", then
wcstod()
converts the subject sequence into the value +Inf.
Otherwise:
When the subject sequence contains a case-insensitive match for
one of L"INF", L"+INF", L"INFINITY" or L"+INFINITY", then
wcstod()
returns HUGE_VAL and sets errno to ERANGE.
Testing Requirement(s): Test with all uppercase, all lowercase, and
mixed-case wide strings.
Note: This test is only executed in UNIX03 and POSIX01 modes.
Test Strategy:
FOR various strings representing positive infinity:
CALL wcstod() using the string representing infinity.
If the implementation supports IEC 60559 Infinity:
VERIFY that it returns positive infinity.
Otherwise:
VERIFY it returns HUGE_VAL.
VERIFY that wcstod() set errno to ERANGE.
Test Information:
wcstod("INF", NULL) set errno to 0 (NO ERROR), expecting 34 (ERANGE)
wcstod("+INF", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("INFINITY", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("+INFINITY", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("inf", NULL) set errno to 0 (NO ERROR), expecting 34 (ERANGE)
wcstod("+inf", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("infinity", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("+infinity", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("iNf", NULL) set errno to 0 (NO ERROR), expecting 34 (ERANGE)
wcstod("+InF", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("iNFiNIty", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("+INfIniTy", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
************************************************************************
************************************************************************
/tset/XPG4.os/wgenuts/wcstod/T.wcstod 10 Failed
Test Description:
If the implementation supports IEC 60559 Infinity:
When the subject sequence contains a case-insensitive match for
L"-INF" or L"-INFINITY", then wcstod() converts the subject
sequence into the value -Inf.
Otherwise:
When the subject sequence contains a case-insensitive match for
L"-INF" or L"-INFINITY", then wcstod() returns -HUGE_VAL and
sets
errno to ERANGE.
Testing Requirement(s): Test with all uppercase, all lowercase, and
mixed-case wide strings.
Note: This test is only executed in UNIX03 and POSIX01 modes.
Test Strategy:
FOR various strings representing negative infinity:
CALL wcstod() using the string representing infinity.
If the implementation supports IEC 60559 Infinity:
VERIFY that it returns negative infinity.
Otherwise:
VERIFY it returns -HUGE_VAL.
VERIFY that wcstod() set errno to ERANGE.
Test Information:
wcstod("-INF", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("-INFINITY", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("-inf", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("-infinity", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("-InF", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
wcstod("-INfIniTy", NULL) set errno to 0 (NO ERROR), expecting 34
(ERANGE)
************************************************************************Review Information
Review Type TSMA Review Start Date 2004-01-22 23:34 Last Updated 2004-01-23 00:49 Completed 2004-01-23 00:49 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-01-23 00:49 Last Updated 2004-01-23 01:26 Completed 2004-01-23 01:26 Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion This Pr represents and agreed test suite deficiency.
Problem Reporting System Options:
- View Report 2308
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority