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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0624 Actions


    Problem Report Number 0624
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0228
    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.cmd/ed 511
    Problem Summary PG4C.00048 This test may fail on implementations because of a timeout in the expect script.
    Problem Text
    This test may fail on implementations because of a timeout in
    the expect script.

    Test is timing out because of a bug in the expect script. The send
    command is splitting the line. When ed gets the partial line, it
    waits for more input, then times-out.

    Here is the captured output from expect -f ed_in_511_1:
    spawn ed ed_out_511_1
    161
    g/the/ s/the/th
    e/
    you soon perceive that th most abstract entities are for him
    ?
    v/the/ s/pold/bo
    ld/
    Talk with M Hermite: he never evokes a concrete image; yet
    you soon perceive that th most abstract entities are for him
    like living creatures.
    Henri Poincare
    \t\tHenri Poincare$
    ?
    g/the/ s/the/th\\
    e/

    Test Output
    200|4 1 09:37:34|TP Start
    520|4 1 114950155 1 1|Assertion #511 (A): Test the substitute command and non-e
    520|4 1 114950155 1 2| <LC> scaped newline characters
    520|4 1 114950155 1 11|Expected exit code = 0; Received 1
    220|4 1 1 09:38:15|FAIL

    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 believe the test is correct.

    The expect "command in question is"

    send "g/the/ s/the/th\\\\\ne/\n"

    This sends the following character sequence to ed

    g/the/ s/the/th\\
    e/

    The format for the g command is

    Synopsis: (1,$)g/RE/command list

    Since the spec states

    All lines of a multi-line list except the last line will be ended
    with a backslash;

    The command list in this case should be taken as

    s/the/th\\
    e/

    The second line does not end in a backslash so the command list
    is complete. Ed should parse the command list, encounter the
    expected error(s), and print a ?. At this point the test would
    continue.

    The "wait for input" the submitter refers to should not be happening.

    Simulating the test case by hand should result in the same behavior.
    This will prove an expect timing problem is not the issue here.

    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