diff options
author | Dmitry K <winsvega@mail.ru> | 2016-08-03 00:32:03 +0800 |
---|---|---|
committer | Dmitry K <winsvega@mail.ru> | 2016-08-03 00:32:03 +0800 |
commit | 5925ae0c6a32517f3b19b095e3ed8518d021f2e7 (patch) | |
tree | 117140938964c4b555856ae340d907e917e4efbb /test/libsolidity | |
parent | a10b6f92f97bf2eacc80534f6640e08f0b26e95d (diff) | |
download | dexon-solidity-5925ae0c6a32517f3b19b095e3ed8518d021f2e7.tar.gz dexon-solidity-5925ae0c6a32517f3b19b095e3ed8518d021f2e7.tar.zst dexon-solidity-5925ae0c6a32517f3b19b095e3ed8518d021f2e7.zip |
Windows pipe for soltest
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityExecutionFramework.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
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 <libdevcore/CommonIO.h> #include <test/libsolidity/SolidityExecutionFramework.h> - - 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 <path> or the environment variable ETH_TEST_IPC)"); + return ipcPath; } |