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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0090 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 0090.


Report 0090 Actions


    Problem Report Number 0090
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0090
    Raised 1993-08-30 08:00
    Updated 2003-03-13 08:00
    Published 1993-09-03 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 XPG4.os/genuts/regcomp 28
    Problem Summary TSD4.090 This test for regcomp() considers the pattern "xy(ab))z" to be invalid when the REG_EXTENDED flag is set. The test expects regcomp() to return either of two error codes: REG_EPAREN or REG_BADPAT. The ...
    Problem Text
    This test for regcomp() considers the pattern
    "xy(ab))z" to be invalid when the REG_EXTENDED flag is set.
    The test expects regcomp() to return either of two error
    codes: REG_EPAREN or REG_BADPAT.

    The pattern is actually a valid one, according to Section
    7.4.3, ERE Special Characters, in the System Interface
    Definitions, Issue 4 book. That section says,

    An ERE special character has special properties in certain
    contexts. Outside those contexts, or when preceded by a
    backslash, such a character is an ERE that matches the
    special character itself.

    Later in the section,

    The right-parenthesis is special when matched with a
    preceding left-parenthesis, both outside a bracket
    expression.


    Since the second ')' in the pattern is not matched by a
    preceding '(', it should not be considered as an ERE special character,
    but should be treated as a plain ')' character as per the above statements.
    Thus, the pattern is valid and the call should not return any error.

    Test Output
    /tset/XPG4.os/genuts/regcomp/T.regcomp 28 Failed

    Test Description:
    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.

    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,expr,REG_EXTENDED) called with RE "xy(ab))z"
    Expected return values of either 8 (REG_EPAREN) or 2 (REG_BADPAT),
    actual 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 accepted 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:

     

    Back   


Contact the Certification Authority