From 5925ae0c6a32517f3b19b095e3ed8518d021f2e7 Mon Sep 17 00:00:00 2001 From: Dmitry K Date: Tue, 2 Aug 2016 19:32:03 +0300 Subject: Windows pipe for soltest --- test/libsolidity/SolidityExecutionFramework.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'test/libsolidity/SolidityExecutionFramework.cpp') diff --git a/test/libsolidity/SolidityExecutionFramework.cpp b/test/libsolidity/SolidityExecutionFramework.cpp index a33f4caf..921fd056 100644 --- a/test/libsolidity/SolidityExecutionFramework.cpp +++ b/test/libsolidity/SolidityExecutionFramework.cpp @@ -25,8 +25,6 @@ #include #include - - using namespace std; using namespace dev; using namespace dev::solidity; @@ -39,24 +37,13 @@ namespace // anonymous string getIPCSocketPath() { - string ipcPath; - - size_t argc = boost::unit_test::framework::master_test_suite().argc; - char** argv = boost::unit_test::framework::master_test_suite().argv; - for (size_t i = 0; i < argc; i++) - { - string arg = argv[i]; - if (arg == "--ipc" && i + 1 < argc) - { - ipcPath = argv[i + 1]; - i++; - } - } + string ipcPath = dev::test::Options::get().ipcPath; if (ipcPath.empty()) if (auto path = getenv("ETH_TEST_IPC")) ipcPath = path; if (ipcPath.empty()) BOOST_FAIL("ERROR: ipcPath not set! (use --ipc or the environment variable ETH_TEST_IPC)"); + return ipcPath; } -- cgit v1.2.3