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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0232 Actions


    Problem Report Number 0232
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0232
    Raised 1995-08-31 08:00
    Updated 2003-03-13 08:00
    Published 1995-09-08 08:00
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.3.5
    Test Identification ANSI.os/string/strcat 1
    Linked Problem Reports TSD4.178, (in, old, system)
    Problem Summary TSD4.232 The tests in the string test area assume that the host system is ASCII-based but there is nothing in ANSI or POSIX that requires this to be so. The tests take advantage of the fact in ASCII, the lower...
    Problem Text
    The tests in the string test area assume that the host system is
    ASCII-based but there is nothing in ANSI or POSIX that requires this to
    be so. The tests take advantage of the fact in ASCII, the lower case
    alphabet is contiguous and ranges from 0x61 to 0x7a. In EBCDIC, the
    lower case alphabet is found in three discontiguous sections: 0x81 to
    0x89, 0x91 to 0x99, and 0xa2 to 0xa9. The following tests fail on an
    EBCDIC system because the alphabet is not contiguous:

    ANSI.os/string/strcat/T.strcat 1
    ANSI.os/string/Mstrcat/T.strcat 1
    ANSI.os/string/strncat/T.strncat 1
    ANSI.os/string/strpbrk/T.strpbrk 1

    ANSI.os/string/Mstrncat/T.strncat 1
    ANSI.os/string/Mstrncmp/T.strncmp 3
    ANSI.os/string/Mstrncpy/T.strncpy 2
    XPG4.os/wstring/wcscat/T.wcscat 1
    XPG4.os/wstring/wcsncat/T.wcsncat 1

    NOTE: /tset/ANSI.os/string/Mstrncat/T.strncat 1
    /tset/ANSI.os/string/Mstrncmp/T.strncmp 3
    /tset/ANSI.os/string/Mstrncpy/T.strncpy 2
    /tset/XPG4.os/wstring/wcscat/T.wcscat 1
    /tset/XPG4.os/wstring/wcsncat/T.wcsncat 1
    were never submitted
    in the previous TSD4.178 request.
    This was an oversight on our part.
    Test Output
    /tset/ANSI.os/string/strcat/T.strcat 1 Failed

    Test Description:
    strcat() appends a copy of string s2 to the end of string s1 stopping
    after the null character has been copied and returns s1. The initial
    character of s2 overwrites the null character at the end of s1.
    Posix Ref: Component STRCAT Assertion 8.1-04(A)

    Test Strategy:
    VERIFY second string is concatenated onto first string with correct
    NULL termination. Strings include characters with 8 bit settings.

    Test Information:
    strcat did did not copy data correctly
    expected result : abcdefghi\212\213\214\215\216\217\220jklmnopqr\232
    actual result :
    abckefghi\212\213\214mnopqr\232\233\234\235\236\237\240~
    ************************************************************************
    /tset/ANSI.os/string/Mstrcat/T.strcat 1 Failed

    Test Description:
    strcat() appends a copy of string s2 to the end of string s1 stopping
    after the null character has been copied and returns s1. The initial
    character of s2 overwrites the null character at the end of s1.
    Posix Ref: Component STRCAT Assertion 8.1-04(A)

    Test Strategy:
    VERIFY second string is concatenated onto first string with correct
    NULL termination. Strings include characters with 8 bit settings.

    Test Information:
    strcat did did not copy data correctly
    expected result : abcdefghi\212\213\214\215\216\217\220jklmnopqr\232
    actual result :
    abcdefghi\212\213\214mnopqr\232\233\234\235\236\237\240~
    *******************************************************************
    /tset/ANSI.os/string/strncat/T.strncat 1 Failed

    Test Description:
    If s2 is greater than n characters in length then strncat() appends n
    characters from string s2 to s1, adds a null terminator to s1 and
    retunns s1. The initial character of s2 overwrites the null character
    at the end of s1.
    Posix Ref: Component STRNCAT Assertion 8.1-04(A)

    Test Strategy:
    VERIFY that the correct string is returned when the number of bytes
    copied is less than the length of the second string. Either string can
    contain 8 bit characters.

    Test Information:
    strncat did did not copy data correctly
    expected result : abcdefghi\212\213\214\215\216\217\220j
    actual result : abcdefghi\212\213\214mnopq
    ************************************************************************
    /tset/ANSI.os/string/strpbrk/T.strpbrk 1 Failed

    Test Description:
    strpbrk() returns a pointer to the first occurrence in string s1 of
    any character from string s2.
    Posix Ref: Component STRPBRK Assertion 8.1-04(A)

    Test Strategy:
    VERIFY that correct character is referenced when it appears in
    searched string. Both strings can contain 8 bit characters.

    Test Information:
    strpbrk did not return expected value
    pointer & value of first argument : 0x97b0430.abcdeabcdeabcdeaefg
    value of second argument : est
    expected return value : 0x97b0439
    actual return value : 0x97b0434
    strpbrk did not return expected value
    pointer & value of first argument : 0x97b0430.abcdeabcdeabcdeaefg
    value of second argument : ace
    expected return value : 0x97b0434
    actual return value : 0x97b0430
    ************************************************************************
    /tset/ANSI.os/string/Mstrncat/T.strncat 1 Failed

    Test Description:
    If s2 is greater than n characters in length then strncat() appends n
    characters from string s2 to s1, adds a null terminator to s1 and
    returns s1. The initial character of s2 overwrites the null character
    at the end of s1.
    Posix Ref: Component STRNCAT Assertion 8.1-04(A)

    Test Strategy:
    VERIFY that the correct string is returned when the number of bytes
    copied is less than the length of the second string. Either string can
    contain 8 bit characters.

    Test Information:
    strncat did did not copy data correctly
    expected result : abcdefghi\212\213\214\215\216\217\220j
    actual result : abcdefghi\212\213\214mnopq
    *******************************************************************
    /tset/ANSI.os/string/Mstrncmp/T.strncmp 3 Failed

    Test Description:
    strncmp() returns an integer greater than zero if the difference
    between the first pair of differing characters (interpreted as
    unsigned char) in the first n characters of s1 and s2 is greater than
    zero.

    Test Strategy:
    VERIFY positive return when first string has byte value < second
    string within the size specified. Either string can contain 8 bit
    characters.

    Test Information:
    strncmp did not return expected value
    value of first argument : abcdefghi\212\213\214\215\216000
    value of second argument : abcdefghi\212\213\214\215\216999
    value of third argument : 14
    expected return value : > 0
    actual return value : 0
    ************************************************************************
    /tset/ANSI.os/string/Mstrncpy/T.strncpy 2 Failed

    Test Description:
    If s2 is less than n characters in length then strncpy() copies s2 to
    s1, pads the remaining characters in s1 with null and returns s1.

    Test Strategy:
    VERIFY that all of the string is copied when the string is shorter
    than the number of bytes requested.

    Test Information:
    strncpy did did not copy data correctly
    expected result : \200abcdefghi\212\213\214\215\216\217\220jklmnopqr
    actual result : \200abcdefghi\212\213\214\215\216\217\220jklmnopqr
    ************************************************************************
    /tset/XPG4.os/wstring/wcscat/T.wcscat 1 Failed

    Test Description:
    A call to wcscat() appends a copy of the wide string s2 to the end of
    the wide string s1 stopping after the null wide character has been
    copied and returns s1. The initial wide character of s2 overwrites
    the null wide character at the end of s1.

    Test Strategy:
    SET up two wide strings containing ordinary character values
    VERIFY second string is concatenated onto first string with correct
    NULL termination
    OBTAIN a sample string of wide characters by calling the routine
    wcharstr().
    SET the locale for LC_ALL to LOCALE1.
    VERIFY second string is concatenated onto first string with correct
    NULL termination.

    Test Information:
    wcscat did not copy data correctly
    Current language is C
    Current category is LC_ALL
    expected result : abcdefghi\212\213\214\215\216\217\220jklmnopqr\232
    actual result :
    abcdefghi\212\213\214mnopqr\232\233\234\235\236\237\240~
    ************************************************************************
    /tset/XPG4.os/wstring/wcsncat/T.wcsncat 1 Failed

    Test Description:
    When s2 is greater than n wide characters in length, then a call to
    wcsncat() appends n wide characters from the wide string s2 to s1,
    adds a terminating wide character to s1 and returns s1. The initial
    wide character of s2 overwrites the null wide character at the end of
    s1.

    Test Strategy:
    OBTAIN a sample string of wide characters by calling the routine
    wchrstr().
    SET the locale for LC_ALL to LOCALE1.
    VERIFY that the correct string is returned when the number of bytes
    copied is less than the length of the second string.

    Test Information:
    wcsncat did not copy data correctly
    Current language is C
    Current category is LC_ALL
    expected result : abcdefghi\212\213\214\215\216\217\220j
    actual result : abcdefghi\212\213\214mnopq
    ************************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    It is agreed that this is a fault in the test suite. The failures for the
    ANSI.os/string routines are covered by TSD4.229. It is recommended that a
    waiver is granted for the XPG4.os/wstring tests on the grounds 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 for the wstring tests.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority