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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0591 Actions


    Problem Report Number 0591
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0195
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    Product Standard Commands and Utilities V2 (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSC version 4.1.5
    Test Identification POSIX.upe/bg 17
    Problem Summary PG4C.00081 This IR claims the test has timing problems.
    Problem Text
    This IR claims the test has timing problems.

    The test purpose #17 may fail due to timing dependencies.

    The test issues the following:
    { sleep 300 & bg 2>/dev/null >/dev/null; cat - ; \
    kill %1 2>/dev/null >/dev/null; } < 17_1.eso

    This sometimes fails on the implementation under test and it appears
    to be because the kill is issued before bg has completed.

    I have been able to get the test to pass consistently by adding a
    sleep 5 before the kill %1. So the test becomes:

    { sleep 300 & bg 2>/dev/null >/dev/null; cat - ; sleep 5 ; \
    kill %1 2>/dev/null >/dev/null; } < 17_1.eso

    I have passing and failing output from expect -d 17_1.exp
    run interactively and will send it upon request.
    Test Output
    400|1 17 1 10:07:02|IC Start
    200|1 1 10:07:02|TP Start
    520|1 1 1048588 1 1|Assertion #17 (C): GA32: bg doesn't read standard input
    520|1 1 1048588 1 11|Expected exit code = 0; Received 1
    520|1 1 1048588 1 12|Standard error isn't empty
    520|1 1 1048588 1 13|Contents of out.stderr:
    520|1 1 1048588 1 14|expect_after: unexpected timeout
    220|1 1 1 10:08:20|FAIL
    410|1 17 1 10:08:21|IC End

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We recommend this request be refused.

    We have worked with the submitter and have come to the conclusion
    that timing problems are not causing this faulure. We believe
    the test is correct.

    The semantics of the ; separator requires that previous commands
    complete prior to beginning execution of the next command. In the
    example used,

    sleep 300 - starts immediately
    bg - starts immediately
    cat - starts after bg completes
    kill - starts after cat completes

    Consequently, we do not see any way for the kill command to complete
    prior to bg command completing. The test expects to receive the shell prompt
    after the brace enclosed command sequence has completed.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority