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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 2309 Actions


    Problem Report Number 2309
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1185
    Raised 2004-01-22 23:43
    Updated 2004-01-27 14:42
    Published 2004-01-27 14:42
    Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.5.4
    Test Identification XPG4.os/wtime/wcsftime_X test 8
    Specification Base Definitions Issue 6
    Location in Spec none
    Linked Problem Reports our, VSX4, Bug, Report, 0021
    Problem Summary comparsion of output array is incorrect
    Problem Text The code in chkwcsftime() looks like this

    rval = wcsftime(str, size, formstr, &tmbuf);
    .
    .
    .
    else if (wcscmp(str, expstr))

    SUSv3 states for %z(in strftime):

    "... If tm_isdst is negative, no characters are returned."

    and in the wcsftime() return value:

    "... Otherwise zero is returned and the contents of the array are
    unspecified."

    So for a negative tm_isdst value wcsftime(%z) is expected to return zero
    with no usable information in the output array. But the test is
    comparing the output array expecting to find a terminating null.


    This was accepted as testcase bug, prior to the PR system coming online.
    Requesting a TSD until the next version of VSX4 is released.
    Test Output
    ************************************************************************
    /tset/XPG4.os/wtime/wcsftime_X/T.wcsftime_X 8 Failed

    Test Description:
    When tm_isdst is less than zero in the tm structure passed to
    wcsftime(), then it converts %z in the format wide string to no wide
    characters in the output wide string.
    Note: This test is only executed in POSIX01 and UNIX03 modes.

    Test Strategy:
    PARENT process will
    CREATE child process using cppair()
    CHILD process will
    INITIALISE tm structure
    SET the timezone using setenv()
    SET tm_isdst to -1
    CONVERT date and time to string using wcsftime() with %z
    VERIFY wcsftime() returns the expected wide string of the correct
    format

    Test Information:
    wcsftime(str, size, %z, &tmbuf) returned incorrectly formatted
    string
    Expected string:
    Actual string: 0x 2000 38c0 2ff2 2524 2000 34c4 2ff2 2540 2000
    38c0
    1001 9bec


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

    Review Information

    Review Type TSMA Review
    Start Date 2004-01-22 23:43
    Last Updated 2004-01-23 00:55
    Completed 2004-01-23 00:55
    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-01-23 00:56
    Last Updated 2004-01-23 01:27
    Completed 2004-01-23 01:27
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion This PR represents an agreed test suite deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority