diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-29 08:01:47 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-29 18:09:18 +0800 |
commit | 7fb4a64136af18f2b61aef71ecc33ccbbc790ec6 (patch) | |
tree | c44271af2ca3c9a4461a297ba608f1a75910f09b /test | |
parent | b364bd048ffaf233782a23dabd13622431a75aa3 (diff) | |
download | dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.gz dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.bz2 dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.lz dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.xz dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.zst dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.zip |
Move all file specific globals to anonymous namespace
Diffstat (limited to 'test')
-rw-r--r-- | test/ExecutionFramework.cpp | 6 | ||||
-rw-r--r-- | test/fuzzer.cpp | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/ExecutionFramework.cpp b/test/ExecutionFramework.cpp index f4e5fcef..b2de814a 100644 --- a/test/ExecutionFramework.cpp +++ b/test/ExecutionFramework.cpp @@ -31,8 +31,8 @@ using namespace dev::test; namespace // anonymous { - h256 const EmptyTrie("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"); -} + +h256 const EmptyTrie("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"); string getIPCSocketPath() { @@ -43,6 +43,8 @@ string getIPCSocketPath() return ipcPath; } +} + ExecutionFramework::ExecutionFramework() : m_rpc(RPCSession::instance(getIPCSocketPath())), m_optimize(dev::test::Options::get().optimize), diff --git a/test/fuzzer.cpp b/test/fuzzer.cpp index cf99755f..c3a321f7 100644 --- a/test/fuzzer.cpp +++ b/test/fuzzer.cpp @@ -40,6 +40,9 @@ typedef void (*CStyleReadFileCallback)(char const* _path, char** o_contents, cha extern char const* compileStandard(char const* _input, CStyleReadFileCallback _readCallback); } +namespace +{ + bool quiet = false; string contains(string const& _haystack, vector<string> const& _needles) @@ -169,6 +172,8 @@ void testCompiler() } } +} + int main(int argc, char** argv) { po::options_description options( |