aboutsummaryrefslogtreecommitdiffstats
path: root/TestHelper.cpp
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2015-05-05 23:15:26 +0800
committerwinsvega <winsvega@mail.ru>2015-05-05 23:15:26 +0800
commitce40f285f301d70e125020b486b0e9ffdf82d349 (patch)
tree1e2c53f1575e11c482a95ddc5b9e09d12f1d43b7 /TestHelper.cpp
parentd2457abb98cbb28037387cb31da8874834a59e4d (diff)
downloaddexon-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.cpp12
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];
}
}
}