diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-09 21:08:52 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-09 23:40:56 +0800 |
commit | 95f8c5bcdb69ab4cba835f8bc06ab89da4768db8 (patch) | |
tree | ea7b5f5196a750e5615d3c26e99f23165e2a0ba2 /test | |
parent | f2cafd497459d7ed0ea7f6efdeeb77a51cacecc7 (diff) | |
download | dexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.tar dexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.tar.gz dexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.tar.bz2 dexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.tar.lz dexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.tar.xz dexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.tar.zst dexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.zip |
Ensure that the whole message was written on Windows IPC
Diffstat (limited to 'test')
-rw-r--r-- | test/RPCSession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index caaf9a8c..b3451528 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -89,7 +89,7 @@ string IPCSocket::sendRequest(string const& _req) &cbWritten, // bytes written NULL); // not overlapped - if (!fSuccess) + if (!fSuccess || (_req.size() != cbWritten)) BOOST_FAIL("WriteFile to pipe failed"); // Read from the pipe. |