Solidity: cryptographic ecrecover test

This commit is contained in:
winsvega 2015-05-05 18:15:26 +03:00
parent d2457abb98
commit ce40f285f3
2 changed files with 7 additions and 9 deletions

View File

@ -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];
}
}
}

View File

@ -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;