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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0167 Actions


    Problem Report Number 0167
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0167
    Raised 1994-06-14 08:00
    Updated 2003-03-13 08:00
    Published 1994-06-20 08:00
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.3.4
    Test Identification XPG4.hdr/misc/regex 20
    Linked Problem Reports TSD4.156, (in, old, system)
    Problem Summary TSD4.167 The utility used in XPG4 tests, hdranal, checks stdlib.h and expects the following: a struct/union member name starts with 'str' or '_' or ends with '_t'. It also expects the test code to '#und...
    Problem Text


    The utility used in XPG4 tests, hdranal, checks stdlib.h and expects the
    following:

    a struct/union member name starts with 'str' or '_' or ends with '_t'.
    It also expects the test code to '#undef' the allowed member names. In the
    case ANSI.hdr/misc/stdlib, #undef quot and #undef rem are done. However,
    in the above case, quot and rem are not undefined and the case failed
    with compilation error - Unexpected symbol: "quot unprotected".
    - Unexpected symbol: "rem unprotected".

    The test suite should be made consistent, and in any case, the types
    div_t (and ldiv_t) are required by the div() (and ldiv()) entries to
    be structures containing at least the following members:

    (long) int quot;
    (long) int rem;

    Since these types are required by XPG4 to be defined in <stdlib.h>, that
    header must include those structure members. quot and rem should be treated as
    the 'allowed member names', the test case should undefine quot and rem.


    Test Output

    /tset/XPG4.hdr/misc/regex/T.regex 20 Failed

    Test Description:
    When _XOPEN_SOURCE is defined and no other feature test macros except
    _POSIX_SOURCE, _POSIX_C_SOURCE=1 or _POSIX_C_SOURCE=2 are defined, no
    other symbols than those defined or reserved by the XPG are made
    visible.

    Test Strategy:
    FOR each unreserved struct/union member made visible by the header
    DEFINE a macro which will cause an error if not protected from
    expansion
    UNDEFINE those macros which correspond to allowed member names
    INCLUDE a copy of the header file modified to identify #defines
    FOR each unreserved symbol made visible by the header
    VERIFY that the symbol name is in a list of allowed names

    Test Information:
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE
    Compiler or run-time messages or results:
    cc: "regex.h.D", line 2298: error 1000: Unexpected symbol: "quot
    unprotected".
    cc: "regex.h.D", line 2299: error 1000: Unexpected symbol: "rem
    unprotected".
    cc: "regex.h.D", line 2299: error 1000: Unexpected symbol: ")".
    cc: "regex.h.D", line 2300: error 1000: Unexpected symbol: "}".
    cc: "regex.h.D", line 2302: error 1000: Unexpected symbol: "quot
    unprotected".
    cc: "regex.h.D", line 2303: error 1000: Unexpected symbol: "rem
    unprotected".
    cc: "regex.h.D", line 2339: error 1000: Unexpected symbol: "div".
    cc: error 2017: Cannot recover from earlier errors, terminating.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    cc: "regex.h.D", line 2298: error 1000: Unexpected symbol: "quot
    unprotected".
    cc: "regex.h.D", line 2299: error 1000: Unexpected symbol: "rem
    unprotected".
    cc: "regex.h.D", line 2299: error 1000: Unexpected symbol: ")".
    cc: "regex.h.D", line 2300: error 1000: Unexpected symbol: "}".
    cc: "regex.h.D", line 2302: error 1000: Unexpected symbol: "quot
    unprotected".
    cc: "regex.h.D", line 2303: error 1000: Unexpected symbol: "rem
    unprotected".
    cc: "regex.h.D", line 2339: error 1000: Unexpected symbol: "div".
    cc: error 2017: Cannot recover from earlier errors, terminating.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=1
    Compiler or run-time messages or results:
    cc: "regex.h.D", line 2298: error 1000: Unexpected symbol: "quot
    unprotected".
    cc: "regex.h.D", line 2299: error 1000: Unexpected symbol: "rem
    unprotected".
    cc: "regex.h.D", line 2299: error 1000: Unexpected symbol: ")".
    cc: "regex.h.D", line 2300: error 1000: Unexpected symbol: "}".
    cc: "regex.h.D", line 2302: error 1000: Unexpected symbol: "quot
    unprotected".
    TEST INFORMATION TRUNCATED BY -t OPTION

    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 fault and it is recommended that this
    test be the subject of 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