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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1568 Actions


    Problem Report Number 1568
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0850
    Raised 2002-01-30 08:00
    Updated 2003-03-13 08:00
    Published 2002-02-18 08:00
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.1.2
    Test Identification CAPI.os/genuts/openlog 2, 3
    Problem Summary TSD4U.00311 The tests do not allow sufficient time for the syslog message to appear in the log file
    Problem Text

    There is a timing issue with both of these assertions.

    Both contain the following code:

    tet_infoline("PREP: Send message using syslog");
    syslog(LOG_DEBUG,TESTSTRING);

    ret = stat(test_fileptr,&statbuf);
    if(ret){
    uwerrno("stat");
    return;
    }


    tet_infoline("PREP: Wait for syslog output");
    while(statbuf.st_mtime == oldstat.st_mtime && count < 10){
    ret = stat(test_fileptr,&statbuf);
    if(ret){
    uwerrno("stat");
    return;
    }
    count++;
    ret=sleep(1);
    if(ret){
    uwerrno("sleep");
    return;
    }
    }

    if(statbuf.st_mtime == oldstat.st_mtime){
    tet_infoline("ERROR: syslog() failed to send message to logging
    facility");
    tet_result(TET_UNRESOLVED);
    return;
    }

    The problem here is that the loop is so fast, it does not give syslog() enough
    time to write the message.

    By increasing 10 to 30 in the while condition, the tests will pass.

    Test Output
    ************************************************************************
    /tset/CAPI.os/genuts/openlog/T.openlog 2 Unresolved

    Test Description:
    Base Required Conformance
    A call to void openlog(const char *ident, int logopt, int facility)
    shall cause subsequent calls to syslog() to prepend the string pointed
    to by ident to every message.

    Test Information:
    PREP: Call closelog
    PREP: Start logging facility
    PREP: Call closelog
    PREP: Call openlog()
    PREP: Prepare redirected file
    PREP: Send message using syslog
    PREP: Wait for syslog output
    ERROR: syslog() failed to send message to logging facility

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

    ************************************************************************
    /tset/CAPI.os/genuts/openlog/T.openlog 3 Unresolved

    Test Description:
    Base Required Conformance
    A call to void openlog(const char *ident, int logopt, int facility)
    when LOG_PID is set in logopt shall cause subsequent calls to syslog()
    to log the process ID with each message.

    Test Information:
    PREP: Close log to start
    PREP: Start logging facility
    PREP: Close log to start
    PREP: Call openlog()
    PREP: Prepare redirected file
    PREP: Send message using syslog
    PREP: Wait for syslog output
    ERROR: syslog() failed to send message to logging facility

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


    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    The openlog() tests do not allow as much time for the message to appear in
    the log file as the tests for syslog() itself (in CAPI.os/genuts/syslog),
    so it would seem appropriate to change them to be consistent with the
    syslog() tests. This is not as great an increase as requested by the
    submitter (it would double the time allowed rather than trebling it),
    however it is assumed that if some of the syslog() tests were failing for
    the same reason, they would have been included in this request, and
    therefore the time allowed by the syslog() tests is sufficient.

    It is recommended that a TSD is granted.

    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