diff options
author | winsvega <winsvega@mail.ru> | 2015-05-05 23:15:26 +0800 |
---|---|---|
committer | winsvega <winsvega@mail.ru> | 2015-05-05 23:15:26 +0800 |
commit | ce40f285f301d70e125020b486b0e9ffdf82d349 (patch) | |
tree | 1e2c53f1575e11c482a95ddc5b9e09d12f1d43b7 /TestHelper.cpp | |
parent | d2457abb98cbb28037387cb31da8874834a59e4d (diff) | |
download | dexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.tar.gz dexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.tar.zst dexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.zip |
Solidity: cryptographic ecrecover test
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r-- | TestHelper.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index 9e997c49..144a1a28 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -715,11 +715,10 @@ Options::Options() vmtrace = true; else if (arg == "--filltests") fillTests = true; - else if (arg.compare(0, 7, "--stats") == 0) + else if (arg == "--stats" && i + 1 < argc) { stats = true; - if (arg.size() > 7) - statsOutFile = arg.substr(8); // skip '=' char + statsOutFile = argv[i + 1]; } else if (arg == "--performance") performance = true; @@ -741,11 +740,10 @@ Options::Options() inputLimits = true; bigData = true; } - else if (arg.compare(0, 12, "--singletest") == 0) + else if (arg == "--singletest" && i + 1 < argc) { - singletest = true; - if (arg.size() > 12) - singletestName = arg.substr(13); // skip '=' char + singleTest = true; + singleTestName = argv[i + 1]; } } } |