aboutsummaryrefslogtreecommitdiffstats
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
parentd2457abb98cbb28037387cb31da8874834a59e4d (diff)
downloaddexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.tar
dexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.tar.gz
dexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.tar.bz2
dexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.tar.lz
dexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.tar.xz
dexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.tar.zst
dexon-solidity-ce40f285f301d70e125020b486b0e9ffdf82d349.zip
Solidity: cryptographic ecrecover test
-rw-r--r--TestHelper.cpp12
-rw-r--r--TestHelper.h4
2 files changed, 7 insertions, 9 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];
}
}
}
diff --git a/TestHelper.h b/TestHelper.h
index 6d234abe..02f509e4 100644
--- a/TestHelper.h
+++ b/TestHelper.h
@@ -188,8 +188,8 @@ public:
/// Test selection
/// @{
- bool singletest = false;
- std::string singletestName;
+ bool singleTest = false;
+ std::string singleTestName;
bool performance = false;
bool quadratic = false;
bool memory = false;