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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1420 Actions


    Problem Report Number 1420
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0702
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-03-18 08:00
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.1.0
    Test Identification base/syslog 139, 146
    Problem Summary TSD4U.00113 This test may fail on implemenations because not all arguments prior to the 4th argument are referenced in the format string.
    Problem Text
    This test may fail on implemenations because not all arguments prior
    to the 4th argument are referenced in the format string.

    In From "System Interface and Headers Issue 4, Version 2", page 95,
    paragraph 2 under Descripton:

    The message body is generated from the message and following
    arguments in the same manner as if these were arguments to
    printf()...

    On page 185, the fprintf article, it states:

    When numbered argument specifications are used, specifying the
    Nth argument requires that all of the leading arguments, from
    the first to the (N-1), are specified in the format string

    The format in test 139 is:

    #define FORMAT2 "k$+-n.c = %1$+-7.c,k$+-n.s = %2$+-7.s,k$+-n.lo = %4$+-7.lo"
    ^^^ ^^^ ^^^
    The format in test 146 is:

    #define FORMAT2 "k$#- nc = %1$#- 7c,k$#- ns = %2$#- 7s,k$#- nlo = %4$#- 7lo"
    ^^^ ^^^ ^^^
    Notice the numbered argument specificaton %4$ is used, but %3$ is
    missing. These are not valid printf formats so they cannot be valid
    syslog formats.

    Test Output
    TEST PURPOSE #139
    On a call to void syslog(int priority,
    const char *message, .../* argument */) when message
    contains %k$+-n.?, where k = a positive integer and
    the argument is the kth argument where ? = a type
    conversion character (d, hi, lo, f, e, g, c, s) the
    result shall be equivalent to "%k$+n.?" except that
    it shall be left justified.
    PREP: Read VSU_USER_SYSLOG_FILE
    PREP: Start logging facility
    PREP: Close logging facility
    PREP: Call openlog()
    PREP: Call setlogmask()
    PREP: Open file to which messages are sent
    TEST: Send message using syslog
    PREP: Wait for syslog output
    TEST: syslog() message has correct format
    PREP: Open file to which messages are sent
    TEST: Send message using syslog
    PREP: Wait for syslog output
    TEST: syslog() message has correct format
    ERROR: syslog() failed to format argument correctly
    Received = This is a test k$+-n.c =
    Expected = This is a test k$+-n.c =
    139 FAIL

    TEST PURPOSE #146
    On a call to void syslog(int priority,
    const char *message, .../* argument */) when message
    contains %k$#- n?, where k = a positive integer and
    the argument is the kth argument where ? = a type
    conversion character (d, hi, lo, f, e, g, c, s), the
    result shall be equivalent to "%k$#n?" except that
    it shall be left justified and, if the first character
    of a signed conversion result is not a sign, a blank
    shall be prefixed to the result.
    PREP: Read VSU_USER_SYSLOG_FILE
    PREP: Start logging facility
    PREP: Close logging facility
    PREP: Call openlog()
    PREP: Call setlogmask()
    PREP: Open file to which messages are sent
    TEST: Send message using syslog
    PREP: Wait for syslog output
    TEST: syslog() message has correct format
    PREP: Open file to which messages are sent
    TEST: Send message using syslog
    PREP: Wait for syslog output
    TEST: syslog() message has correct format
    ERROR: syslog() failed to format argument correctly
    Received = This is a test k$#- nc =
    Expected = This is a test k$#- nc =
    146 FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree this is a test suite deficiency in the test
    suite version(s) listed.

    Since the behavior of the printf is undefined when not all
    arguments prior to the Nth argument are referenced in the format
    string, the last line in the syslog output is similiar but not
    identical to the expected output generated by sprintf().

    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