aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-07 20:32:58 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-09 05:24:29 +0800
commit3be6d105252d2153a6c05a4e788f615ed0921d6b (patch)
treec5a6f2c0e56d3f59fd0b3d71ad1b51aa5344e3ff /test
parent43bae9dd0bd924ad4a7277ea3c0a8f69d85f4870 (diff)
downloaddexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.tar.gz
dexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.tar.zst
dexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.zip
Avoid crash if fdopen failed in IPC
Diffstat (limited to 'test')
-rw-r--r--test/RPCSession.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp
index f67696d9..43f10824 100644
--- a/test/RPCSession.cpp
+++ b/test/RPCSession.cpp
@@ -75,6 +75,8 @@ IPCSocket::IPCSocket(string const& _path): m_path(_path)
BOOST_FAIL("Error connecting to IPC socket: " << _path);
m_fp = fdopen(m_socket, "r");
+ if (!m_fp)
+ BOOST_FAIL("Error opening IPC socket: " << _path);
#endif
}