|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0492 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 0492.
Report 0492 Actions
Problem Report Number 0492 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0111 Raised 1995-09-06 08:00 Updated 2003-03-13 08:00 Published null 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/strchr 2 Linked Problem Reports TSD4.179, (in, old, system) Problem Summary PG4R.112 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. Several test programs use the fact that in ASCII, turnin... 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. Several test programs use the fact that in ASCII, turning
on the high-order bit of a byte containing a printable character
changes the value of the byte. This is not always true for EBCDIC
characters - the value may stay the same [('a' | 0xf0) == 'a' in
EBCDIC]. Tests that assume the state of any bit (including the
high-order bit) of any character are not valid. The following tests
are failing because they assume they can turn on the high-order bit to
change the value of a printable character:
ANSI.os/string/Mstrchr/T.strchr 2
ANSI.os/string/Mstrcmp/T.strcmp 1
ANSI.os/string/Mstrcmp/T.strcmp 3
ANSI.os/string/Mstrrchr/T.strrchr 2
ANSI.os/string/strchr/T.strchr 2
ANSI.os/string/strcmp/T.strcmp 1
ANSI.os/string/strcmp/T.strcmp 3
ANSI.os/string/strcspn/T.strcspn 1
ANSI.os/string/strncmp/T.strncmp 1
ANSI.os/string/strncmp/T.strncmp 3
ANSI.os/string/strpbrk/T.strpbrk 2
ANSI.os/string/strrchr/T.strrchr 2
ANSI.os/string/strspn/T.strspn 1
ANSI.os/string/strstr/T.strstr 2
ANSI.os/string/strtok/T.strtok 1
ANSI.os/string/strtok/T.strtok 2
ANSI.os/string/strstr/T.strstr 1
ANSI.os/string/Mstrncmp/T.strncmp 1
NOTE: /tset/ANSI.os/string/strstr/T.strstr 1 and
/tset/ANSI.os/string/Mstrncmp/T.strncmp 1
were never submitted
in the previous TSD4.179 request.
This was an oversight on our part.Test Output
---------------------------------------------------------------------
/tset/ANSI.os/string/strchr/T.strchr 2 Failed
Test Description:
strchr() returns a null pointer if character c does not occur in
string s.
Test Strategy:
VERIFY NULL return when character is not in the string.
Test Information:
strchr did not return expected value
pointer & value of first argument : 0x97b0064.000a000xa000x00a00x
value of second argument : x
expected return value : 0x0
actual return value : 0x97b006b
strchr did not return expected value
pointer & value of first argument : 0x97b0064.000a000xa000x00a00x
value of second argument : a
expected return value : 0x0
actual return value : 0x97b0067
---------------------------------------------------------------------
/tset/ANSI.os/string/Mstrchr/T.strchr 2 Failed
Test Description:
strchr() returns a null pointer if character c does not occur in
string s.
Test Strategy:
VERIFY NULL return when character is not in the string.
Test Information:
strchr did not return expected value
pointer & value of first argument : 0x97b0064.000a000xa000x00a00x
value of second argument : x
expected return value : 0x0
actual return value : 0x97b006b
strchr did not return expected value
pointer & value of first argument : 0x97b0064.000a000xa000x00a00x
value of second argument : a
expected return value : 0x0
actual return value : 0x97b0067
---------------------------------------------------------------------
/tset/ANSI.os/string/Mstrcmp/T.strcmp 1 Failed
Test Description:
strcmp() returns an integer less than zero if the difference between
the first pair of differing characters (interpreted as unsigned char)
in s1 and s2 is less than zero.
Posix Ref: Component STRCMP Assertion 8.1-04(A)
Test Strategy:
VERIFY negative return when first string has byte value > second
string. Either string can contain 8 bit characters.
Test Information:
strcmp did not return expected value
value of first argument : abcdefghi\212\213\214\215\216999
value of second argument : abcdefghi\212\213\214\215\216000
expected return value : < 0
actual return value : 1
-------------------------------------------------------------------
/tset/ANSI.os/string/Mstrcmp/T.strcmp 3 Failed
Test Description:
strcmp() returns an integer greater than zero if the difference
between the first pair of differing characters (interpreted as
unsigned char) in s1 and s2 is greater than zero.
Test Strategy:
VERIFY positive return when first string has byte value < second
string. Either string can contain 8 bit characters.
Test Information:
strcmp 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
expected return value : > 0
actual return value : -1
--------------------------------------------------------------------
/tset/ANSI.os/string/Mstrrchr/T.strrchr 2 Failed
Test Description:
strrchr() returns a null pointer if character c does not occur in
string s.
Test Strategy:
VERIFY NULL return when character is not in the string.
Test Information:
strrchr did not return expected value
pointer & value of first argument : 0x97b0424.000a000xa000x00a00x
value of second argument : x
expected return value : 0x0
actual return value : 0x97b0436
strrchr did not return expected value
pointer & value of first argument : 0x97b0424.000a000xa000x00a00x
value of second argument : a
expected return value : 0x0
actual return value : 0x97b0433
--------------------------------------------------------------------
/tset/ANSI.os/string/strcmp/T.strcmp 1 Failed
Test Description:
strcmp() returns an integer less than zero if the difference between
the first pair of differing characters (interpreted as unsigned char)
in s1 and s2 is less than zero.
Posix Ref: Component STRCMP Assertion 8.1-04(A)
Test Strategy:
VERIFY negative return when first string has byte value > second
string. Either string can contain 8 bit characters.
Test Information:
strcmp did not return expected value
value of first argument : abcdefghi\212\213\214\215\216999
value of second argument : abcdefghi\212\213\214\215\216000
expected return value : < 0
actual return value : 1
----------------------------------------------------------------------
/tset/ANSI.os/string/strcmp/T.strcmp 3 Failed
Test Description:
strcmp() returns an integer greater than zero if the difference
between the first pair of differing characters (interpreted as
unsigned char) in s1 and s2 is greater than zero.
Test Strategy:
VERIFY positive return when first string has byte value < second
string. Either string can contain 8 bit characters.
Test Information:
strcmp 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
expected return value : > 0
actual return value : -1
---------------------------------------------------------------------
/tset/ANSI.os/string/strcspn/T.strcspn 1 Failed
Test Description:
strcspn() returns the length of the maximum initial segment of string
s1 which consists entirely of characters not from string s2.
Posix Ref: Component STRCSPN Assertion 8.1-04(A)
Test Strategy:
VERIFY that the first character found is from the second string.
VERIFY that if the second string is empty the terminating NULL is
found.
VERIFY that 8 bit characters in either string are correctly matched.
Test Information:
strcspn did not return expected value
pointer & value of first argument : 0x97b0054.abcdabcdabcdabcdefg
value of second argument : lmdopqrexyz
expected return value : 7
actual return value : 3
path tracing error: path counter 4, expected 5
---------------------------------------------------------------------
/tset/ANSI.os/string/strncmp/T.strncmp 1 Failed
Test Description:
strncmp() returns an integer less 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 less than zero.
Posix Ref: Component STRNCMP Assertion 8.1-04(A)
Test Strategy:
VERIFY negative 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\216999
value of second argument : abcdefghi\212\213\214\215\216000
value of third argument : 14
expected return value : < 0
actual return value : 0
---------------------------------------------------------------------
/tset/ANSI.os/string/strncmp/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/strpbrk/T.strpbrk 2 Failed
Test Description:
strpbrk() returns a null pointer if no character from string s2 exists
in string s1.
Test Strategy:
VERIFY that NULL is returned if no character from the search string
appears in the string being searched. Both strings can contain 8 bit
characters.
Test Information:
strpbrk did not return expected value
pointer & value of first argument : 0x97b0430.abcdeabc
value of second argument : elmnopqrstuvw
expected return value : 0x0
actual return value : 0x97b0434
strpbrk did not return expected value
pointer & value of first argument : 0x97b0430.abcd\377abc
value of second argument : ace
expected return value : 0x0
actual return value : 0x97b0430
--------------------------------------------------------------------
/tset/ANSI.os/string/strrchr/T.strrchr 2 Failed
Test Description:
strrchr() returns a null pointer if character c does not occur in
string s.
Test Strategy:
VERIFY NULL return when character is not in the string.
Test Information:
strrchr did not return expected value
pointer & value of first argument : 0x97b0424.000a000xa000x00a00x
value of second argument : x
expected return value : 0x0
actual return value : 0x97b0436
strrchr did not return expected value
pointer & value of first argument : 0x97b0424.000a000xa000x00a00x
value of second argument : a
expected return value : 0x0
actual return value : 0x97b0433
---------------------------------------------------------------------
/tset/ANSI.os/string/strspn/T.strspn 1 Failed
Test Description:
strspn() returns the length of the maximum initial segment of string
s1 which consists entirely of characters from string s2.
Posix Ref: Component STRSPN Assertion 8.1-04(A)
Test Strategy:
VERIFY that the first character found is not in the second string.
VERIFY that if the second string is empty the terminating NULL is
found.
VERIFY that 8 bit characters in either string are correctly matched.
Test Information:
strspn did not return expected value
pointer & value of first argument : 0x97b0054.abcdabcdabcdabcdefg
value of second argument : cdbaabcd
expected return value : 3
actual return value : 16
path tracing error: path counter 4, expected 5
---------------------------------------------------------------------
/tset/ANSI.os/string/strstr/T.strstr 2 Failed
Test Description:
strstr() returns a null pointer if the sequence of characters in the
string s2 does not exist in the string s1.
Test Strategy:
Verify that NULL is returned if the substring is not found. Either
string can have 8 bit characters.
Test Information:
strstr did not return expected value
pointer & value of first argument : 0x97b0438.abcdeabc
value of second argument : eab
expected return value : 0x0
actual return value : 0x97b043c
---------------------------------------------------------------
/tset/ANSI.os/string/strtok/T.strtok 1 Failed
Test Description:
if s1 points to a character string then strtok() returns a pointer to
the first character of the first token, where a text token is a series
of characters separated by one or more characters from the separator
string s2 and will have written a null character into s1 immediately
following the token.
Posix Ref: Component STRTOK Assertion 8.1-04(A)
Test Strategy:
VERIFY that the correct initial token is found within the string.
Either string can contain 8 bit characters.
Test Information:
strtok did not return correct value
pointer of first argument : 0x23490
pointer & value of search string : 0x23490.1albert6joe3sam3fred4
value of second argument : 0123456789
expected return value : 0x23491.albert
actual return value : 0x23491.albert
---------------------------------------------------------------------
/tset/ANSI.os/string/strtok/T.strtok 2 Failed
Test Description:
if s1 is a null pointer then separate calls to strtok() will work
through the original string returning a pointer to the first character
of each subsequent token until there are no tokens left in the string.
Test Strategy:
VERIFY that the correct subsequent token is found within the string.
Either string can contain 8 bit characters.
Test Information:
strtok did not return correct value
pointer of first argument : 0x0
pointer & value of search string : 0x234a8
1albert6joe39812sam3fred4
value of second argument : 0123456789
expected return value : 0x234b0.joe
actual return value : 0x234b0.joe
strtok did not return correct value
pointer of first argument : 0x0
pointer & value of search string : 0x234a8
1albert6joe39812sam3fred4
value of second argument : 0123456789
expected return value : 0x234b8.sam
actual return value : 0x234b8.sam
----------------------------------------------------------------------
/tset/ANSI.os/string/strstr/T.strstr 1 Failed
Test Description:
strstr() returns a pointer to the first occurrence in string s1 of the
sequence of characters (excluding null) in the string s2.
Posix Ref: Component STRSTR Assertion 8.1-04(A)
Test Strategy:
VERIFY that the correct substring is found. Either string can have 8
bit characters.
Test Information:
strstr did not return expected value
pointer & value of first argument : 0x97b0438.abcdeabcdeabcdeaefg
value of second argument : eab
expected return value : 0x97b0441
actual return value : 0x97b043c
----------------------------------------------------------------------
/tset/ANSI.os/string/Mstrncmp/T.strncmp 1 Failed
Test Description:
strncmp() returns an integer less 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 less than zero.
Posix Ref: Component STRNCMP Assertion 8.1-04(A)
Test Strategy:
VERIFY negative 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\216999
value of second argument : abcdefghi\212\213\214\215\216000
value of third argument : 14
expected return value : < 0
actual return value : 0
----------------------------------------------------------------------Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This set of tests is already covered by the accepted Test Suite Deficiency
reference TSD4.229.
It is recommended that this request is refused.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 0492
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority