Problem Report 0028 Details

Help Show help | Quick Search | Click here to view your privileges

This page provides all information on Problem Report 0028.


Report 0028 Actions


    Problem Report Number 0028
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.PX.0015
    Raised 2004-07-21 08:43
    Updated 2004-07-21 19:17
    Published 2004-07-21 19:17
    Product Standard 1003.1-2003 System Interfaces
    Certification Program POSIX Certified by IEEE and The Open Group
    Test Suite VSX-PCTS2003 version 1.0B
    Test Identification /tset/MSE.hdr/misc/wchar/T.wchar 3, 4, 5, 12, 18
    Problem Summary Various wchar.h header tests fail because they rely on XSI only types
    Problem Text Tests in MSE.hdr/misc/wchar assume the types FILE and wctype_t are
    defined, even though this is only true for XSI.
    Test Output ***********************************************************************
    /tset/MSE.hdr/misc/wchar/T.wchar 3 Failed

    Test Description:
    When the header file <wchar.h> is included, then the function
    prototype int fwprintf(FILE *, const wchar_t *, ...) is declared.

    Test Strategy:
    UNDEFINE macro version of fwprintf()
    COMPARE return value against item of the same type.
    USE return value as an array reference.
    ASSIGN return value to an item of the same type.
    ASSIGN address of function to item of the same type.
    IF prototype testing is required
    VERIFY a prototype exists
    SUPPLY a correct prototype

    Test Information:
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112
    Compiler or run-time messages or results:
    "cc03es.c", line 20: error #20: identifier "FILE" is undefined
    FILE * arg1 = 0;
    ^
    "cc03es.c", line 20: error #20: identifier "arg1" is undefined
    FILE * arg1 = 0;

    ^
    "cc03es.c", line 26: error #757: "FILE" is not a type name
    int (*func)( FILE * restrict, const wchar_t * restrict ,
    ...);
    ^
    "cc03es.c", line 60: error #20: identifier "FILE" is undefined
    extern int fwprintf(FILE * restrict , const wchar_t *
    restrict , ...);
    ^
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112 -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    "cc03es.c", line 20: error #20: identifier "FILE" is undefined
    FILE * arg1 = 0;
    ^
    "cc03es.c", line 20: error #20: identifier "arg1" is undefined
    FILE * arg1 = 0;
    ^
    "cc03es.c", line 26: error #757: "FILE" is not a type name
    int (*func)( FILE * restrict, const wchar_t * restrict ,
    ...);
    ^
    "cc03es.c", line 60: error #20: identifier "FILE" is undefined
    extern int fwprintf(FILE * restrict , const wchar_t *
    restrict , ...);
    ^

    ***********************************************************************

    ***********************************************************************
    /tset/MSE.hdr/misc/wchar/T.wchar 4 Failed

    Test Description:
    When the header file <wchar.h> is included, then the function
    prototype int fwscanf(FILE *, const wchar_t *, ...) is declared.

    Test Strategy:
    UNDEFINE macro version of fwscanf()
    COMPARE return value against item of the same type.
    USE return value as an array reference.
    ASSIGN return value to an item of the same type.
    ASSIGN address of function to item of the same type.
    IF prototype testing is required
    VERIFY a prototype exists
    SUPPLY a correct prototype

    Test Information:
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112
    Compiler or run-time messages or results:
    "cc04es.c", line 20: error #20: identifier "FILE" is undefined
    FILE * arg1 = 0;
    ^
    "cc04es.c", line 20: error #20: identifier "arg1" is undefined
    FILE * arg1 = 0;
    ^
    "cc04es.c", line 26: error #757: "FILE" is not a type name
    int (*func)( FILE * restrict , const wchar_t * restrict ,
    ...);
    ^
    "cc04es.c", line 61: error #20: identifier "FILE" is undefined
    extern int fwscanf(FILE * restrict , const wchar_t *
    restrict , ...);
    ^
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112 -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    "cc04es.c", line 20: error #20: identifier "FILE" is undefined
    FILE * arg1 = 0;
    ^
    "cc04es.c", line 20: error #20: identifier "arg1" is undefined
    FILE * arg1 = 0;
    ^
    "cc04es.c", line 26: error #757: "FILE" is not a type name
    int (*func)( FILE * restrict , const wchar_t * restrict ,
    ...);
    ^
    "cc04es.c", line 61: error #20: identifier "FILE" is undefined
    extern int fwscanf(FILE * restrict , const wchar_t *
    restrict , ...);
    ^

    ***********************************************************************

    ***********************************************************************
    /tset/MSE.hdr/misc/wchar/T.wchar 5 Failed

    Test Description:
    When the header file <wchar.h> is included, then the function
    prototype int fwide(FILE *, int) is declared.

    Test Strategy:
    UNDEFINE macro version of fwide()
    COMPARE return value against item of the same type.
    USE return value as an array reference.
    ASSIGN return value to an item of the same type.
    ASSIGN address of function to item of the same type.
    IF prototype testing is required
    VERIFY a prototype exists
    SUPPLY a correct prototype

    Test Information:
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112
    Compiler or run-time messages or results:
    "cc05es.c", line 20: error #20: identifier "FILE" is undefined
    FILE * arg1 = 0;
    ^
    "cc05es.c", line 20: error #20: identifier "arg1" is undefined
    FILE * arg1 = 0;
    ^
    "cc05es.c", line 25: error #757: "FILE" is not a type name
    FILE *
    ^
    "cc05es.c", line 58: error #20: identifier "FILE" is undefined
    extern int fwide(FILE *
    ^
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112 -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    "cc05es.c", line 20: error #20: identifier "FILE" is undefined
    FILE * arg1 = 0;
    ^
    "cc05es.c", line 20: error #20: identifier "arg1" is undefined
    FILE * arg1 = 0;
    ^
    "cc05es.c", line 25: error #757: "FILE" is not a type name
    FILE *
    ^
    "cc05es.c", line 58: error #20: identifier "FILE" is undefined
    extern int fwide(FILE *
    ^

    ***********************************************************************

    ***********************************************************************
    /tset/MSE.hdr/misc/wchar/T.wchar 12 Failed

    Test Description:
    When the header file <wchar.h> is included, then the function
    prototype int vfwprintf(FILE *, const wchar_t *, va_list) is declared.

    Test Strategy:
    UNDEFINE macro version of vfwprintf()
    COMPARE return value against item of the same type.
    USE return value as an array reference.
    ASSIGN return value to an item of the same type.
    ASSIGN address of function to item of the same type.
    IF prototype testing is required
    VERIFY a prototype exists
    SUPPLY a correct prototype

    Test Information:
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112
    Compiler or run-time messages or results:
    "cc12es.c", line 21: error #20: identifier "FILE" is undefined
    FILE * arg1 = 0;
    ^
    "cc12es.c", line 21: error #20: identifier "arg1" is undefined
    FILE * arg1 = 0;
    ^
    "cc12es.c", line 27: error #757: "FILE" is not a type name
    int (*func)( FILE * restrict , const wchar_t * restrict ,
    va_list);
    ^
    "cc12es.c", line 61: error #20: identifier "FILE" is undefined
    extern int vfwprintf(FILE * restrict , const wchar_t *
    restrict , va_list);
    ^
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112 -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    "cc12es.c", line 21: error #20: identifier "FILE" is undefined
    FILE * arg1 = 0;
    ^
    "cc12es.c", line 21: error #20: identifier "arg1" is undefined
    FILE * arg1 = 0;
    ^
    "cc12es.c", line 27: error #757: "FILE" is not a type name
    int (*func)( FILE * restrict , const wchar_t * restrict ,
    va_list);
    ^
    "cc12es.c", line 61: error #20: identifier "FILE" is undefined
    extern int vfwprintf(FILE * restrict , const wchar_t *
    restrict , va_list);
    ^

    ***********************************************************************

    ***********************************************************************
    /tset/MSE.hdr/misc/wchar/T.wchar 18 Failed

    Test Description:
    When the header file <wchar.h> is included, then the function
    prototype wctype_t wctype(const char *) is declared.

    Test Strategy:
    UNDEFINE macro version of wctype()
    COMPARE return value against item of the same type.
    ASSIGN return value to an item of the same type.
    ASSIGN address of function to item of the same type.
    IF prototype testing is required

    VERIFY a prototype exists
    SUPPLY a correct prototype

    Test Information:
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112
    Compiler or run-time messages or results:
    "cc18es.c", line 16: error #20: identifier "wctype_t" is undefined
    wctype_t ret;
    ^
    "cc18es.c", line 17: error #20: identifier "wctype_t" is undefined
    wctype_t array[1];
    ^
    "cc18es.c", line 18: error #20: identifier "wctype_t" is undefined
    wctype_t deref;
    ^
    "cc18es.c", line 22: error #20: identifier "wctype_t" is undefined
    wctype_t (*errfunc)(const char *, int);
    ^
    "cc18es.c", line 22: error #20: identifier "errfunc" is undefined
    wctype_t (*errfunc)(const char *, int);
    ^
    "cc18es.c", line 22: error #109: expression must have (pointer-to-)
    function
    type
    wctype_t (*errfunc)(const char *, int);
    ^
    "cc18es.c", line 22: error #29: expected an expression
    wctype_t (*errfunc)(const char *, int);
    ^
    "cc18es.c", line 22: error #29: expected an expression
    wctype_t (*errfunc)(const char *, int);
    ^
    "cc18es.c", line 23: error #20: identifier "func" is undefined
    wctype_t (*func)(
    ^
    "cc18es.c", line 23: error #109: expression must have (pointer-to-)
    function
    type
    wctype_t (*func)(
    ^
    "cc18es.c", line 24: error #29: expected an expression
    const char *
    ^
    "cc18es.c", line 31: error #20: identifier "wctype" is undefined
    if (ret == wctype(
    ^
    "cc18es.c", line 36: error #20: identifier "wctype" is undefined
    ret = wctype(
    ^
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_POSIX_C_SOURCE=200112 -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    "cc18es.c", line 16: error #20: identifier "wctype_t" is undefined
    wctype_t ret;
    ^
    "cc18es.c", line 17: error #20: identifier "wctype_t" is undefined
    wctype_t array[1];
    ^
    "cc18es.c", line 18: error #20: identifier "wctype_t" is undefined
    wctype_t deref;
    ^
    "cc18es.c", line 22: error #20: identifier "wctype_t" is undefined
    wctype_t (*errfunc)(const char *, int);
    ^
    "cc18es.c", line 22: error #20: identifier "errfunc" is undefined
    wctype_t (*errfunc)(const char *, int);

    ^
    "cc18es.c", line 22: error #109: expression must have (pointer-to-)
    function
    type
    wctype_t (*errfunc)(const char *, int);
    ^
    "cc18es.c", line 22: error #29: expected an expression
    wctype_t (*errfunc)(const char *, int);
    ^
    "cc18es.c", line 22: error #29: expected an expression
    wctype_t (*errfunc)(const char *, int);
    ^
    "cc18es.c", line 23: error #20: identifier "func" is undefined
    wctype_t (*func)(
    ^
    "cc18es.c", line 23: error #109: expression must have (pointer-to-)
    function
    type
    wctype_t (*func)(
    ^
    "cc18es.c", line 24: error #29: expected an expression
    const char *
    ^
    "cc18es.c", line 31: error #20: identifier "wctype" is undefined
    if (ret == wctype(
    ^
    "cc18es.c", line 36: error #20: identifier "wctype" is undefined
    ret = wctype(
    ^

    Review Information

    Review Type TSMA Review
    Start Date 2004-07-21 08:43
    Last Updated 2004-07-21 18:19
    Completed 2004-07-21 18:19
    Status Complete
    Review Recommendation Test Suite Deficiency (TSD)
    Review Response This is accepted as a fault in the test suite.

    Review Type SA Review
    Start Date 2004-07-21 17:19
    Last Updated 2004-07-21 19:16
    Completed 2004-07-21 19:16
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion A test suite deficiency is granted.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority