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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0078 Actions


    Problem Report Number 0078
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0078
    Raised 1993-06-23 08:00
    Updated 2003-03-13 08:00
    Published 1993-06-29 08:00
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.2.4
    Test Identification XPG4.os/time/strptime 3
    Problem Summary TSD4.078 This test fails due to a problem with the test code. The problem relates to the whitespace characters defined in the buf argument passed to strptime. In each case the source code has the whitespace ch...
    Problem Text
    This test fails due to a problem with the test code.

    The problem relates to the whitespace characters defined in the buf
    argument passed to strptime. In each case the source code
    has the whitespace character as 0x20 (ASCII Space), whereas the
    whitespace character should be the same value as that defined
    for the vsx pseudolanguage.

    Test 5 also has this problem.
    Test Output
    ************************************************************************
    /tset/XPG4.os/time/strptime/T.strptime 3 Failed

    Test Description:
    If strptime() is supported:
    When format is a string made up of a series of the following field
    descriptors :
    a. d day of month - 01 to 31 (with or without leading zeros)
    b. D date in %m/%d/%y format
    c. H hour - 00 to 23 (with or without leading zeros)
    d. I hour - 00 to 12 (with or without leading zeros)
    e. j day of year - 001 to 366
    f. M minute - 00 to 59 (with or without leading zeros)
    g. m month of year - 01 to 12 (with or without leading zeros)
    h. n any whitespace character sequence
    i. r time in %I:%M:%S %p format
    j. S second - 00 to 61 (with or without leading zeros)
    k. t any whitespace character sequence
    l. T time in %H:%M:%S notation
    m. U week number of year - 00 to 53 (Sunday as first day of week)
    (with or without leading zeros)
    n. w day of week - 0 to 6 (Sunday = 0) (with or without leading
    zeros)
    o. W week number of year - 00 to 53 (Monday as first day of week)
    (with or without leading zeros)
    p. y last two digits of year - 00 to 99 (with or without leading
    zeros)
    q. Y four digit year including century
    then a call to strptime() reads characters from string and, in the
    case that these characters match the format of the directive,
    translates these characters into the appropriate member of the tm
    structure. Occurrences of "%%" in the format string are matched
    against a single "%" and do not affect the tm structure.
    Otherwise:
    A call to strptime() returns NULL and sets errno to ENOSYS.

    Test Strategy:
    PARENT process will
    CREATE child process using cppair()
    CHILD process will
    FOR each item in the assertion, and for fields with and without
    leading zeroes where allowed, and for locales VSX4L1 and VSX4L2
    where indicated:
    INITIALISE the tm structure to be set by strptime()
    INITIALISE the tm structure that strptime() will be checked
    against.
    IF testing the %p format:
    SET the locale for LC_TIME to VSX4L1 or VSX4L2
    OBTAIN the relevant pseudo-language data using pslanginfo()
    CONVERT the date and time string to a tm structure using
    strptime()
    VERIFY strptime() returns the expected tm structure.

    Test Information:
    time in %I:%M:%S %p format
    strptime("11'40'15\040NM", "%r", &testbuf) failed.
    Current language is VSX4L1
    return value was NULL
    time in %I:%M:%S %p format
    strptime("11'49'45\040am", "%r", &testbuf) failed.
    Current language is VSX4L2
    return value was NULL
    weekday , two digit year, and week number of the year, with leading
    zeroes
    strptime("0091 00 01", "%y %w %U", &testbuf) failed.
    return value was NULL
    weekday , two digit year, and week number of the year, without leading
    zeroes
    strptime("92 4 52", "%y %w %U", &testbuf) failed.
    return value was NULL
    weekday , two digit year, and week number of the year, with leading
    zeroes
    strptime("0091 00 01", "%y %w %W", &testbuf) failed.
    return value was NULL
    weekday , two digit year, and week number of the year, without leading
    zeroes
    strptime("92 4 52", "%y %w %W", &testbuf) failed.
    return value was NULL
    %% in format string is mapped to % in test string
    strptime("% 1991 %", "%% %Y %%", &testbuf) failed.
    return value was NULL
    ************************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is agreed to be a test suite fault and a test suite deficiency waiver
    is recommended.

    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