|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0155 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 0155.
Report 0155 Actions
Problem Report Number 0155 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0155 Raised 1994-06-03 08:00 Updated 2003-03-13 08:00 Published 1994-06-10 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.3.3 Test Identification XPG4.os/genuts/regcomp 28 Problem Summary TSD4.155 The POSIX.2 std 1003.2-1992 Volume 1 page 84, 2.8.4.1.2 states: 'The right parenthesis is special when matched with a preceding left parenthesis, both outside a bracket expression'. Therefore, regco... Problem Text
The POSIX.2 std 1003.2-1992 Volume 1 page 84, 2.8.4.1.2 states:
'The right parenthesis is special when matched with a preceding left
parenthesis, both outside a bracket expression'. Therefore,
regcomp(preg, "xy(ab))z", REG_EXTENDED) shall return 0.
However, if the test is changed to
regcomp(preg, "xy((ab)z", REG_EXTENDED), REG_EPAREN will be returned.Test Output
/tset/XPG4.os/genuts/regcomp/T.regcomp 28 Failed
Test Description:
If regcomp() is supported:
When the REG_EXTENDED flag is set in cflags, and pattern contains
a () imbalance, then a call to regcomp(preg, pattern, cflags)
returns either REG_EPAREN or REG_BADPAT.
Otherwise:
A call to regcomp() returns REG_ENOSYS and sets errno to ENOSYS.
Test Strategy:
CREATE pattern with xy(ab))z
CALL regcomp() with pattern and cflags set to REG_EXTENDED
VERIFY that regcomp() returned either REG_EPAREN or REG_BADPAT
Test Information:
regcomp(preg, "xy(ab))z", REG_EXTENDED) returned 0 (No Error)
expected 8 (REG_EPAREN) or 2 (REG_BADPAT)Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This is accepted to be a test suite deficiency. The second of the right
parentheses should be treated as an ordinary character since it is not
matched by a left parenthesis. It is recommended that this be treated
as a test suite deficiency.
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:
- View Report 0155
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority