VirtualBox

Changeset 62159 in vbox for trunk


Ignore:
Timestamp:
Jul 11, 2016 12:35:00 PM (9 years ago)
Author:
vboxsync
Message:

ValidationKit/TestExecService: Add STDINEOS opcode to mark the end of the stdin stream properly

Location:
trunk/src/VBox/ValidationKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/txsclient.py

    r61831 r62159  
    764764                        msPendingInputReply = base.timestampMilli();
    765765                        continue;
     766
     767                    rc = self.sendMsg('STDINEOS');
     768                    oStdIn = None;
     769                    if rc is not True:
     770                        sFailure = 'sendMsg failure';
     771                        break;
     772                    msPendingInputReply = base.timestampMilli();
    766773
    767774                # Wait for input (500 ms timeout).
  • trunk/src/VBox/ValidationKit/utils/TestExecServ/TestExecService.cpp

    r62158 r62159  
    18631863        else
    18641864            rc = txsReplySimple(pPktHdr, "STDINIGN");
     1865    }
     1866    /*
     1867     * Marks the end of the stream for stdin.
     1868     */
     1869    else if (txsIsSameOpcode(pPktHdr, "STDINEOS"))
     1870    {
     1871        if (RT_LIKELY(pPktHdr->cb == sizeof(TXSPKTHDR)))
     1872        {
     1873            /* Close the pipe. */
     1874            txsDoExecHlpHandleStdInErrorEvent(hPollSet, fPollEvt, phStdInW, pStdInBuf);
     1875            rc = txsReplyAck(pPktHdr);
     1876        }
     1877        else
     1878            rc = txsReplySimple(pPktHdr, "STDINBAD");
    18651879    }
    18661880    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette