diff options
author | Jeffrey Walton <noloader@gmail.com> | 2022-08-24 01:37:30 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2022-08-24 01:37:30 -0400 |
commit | 420d8ca90d12f1fae9684ef3e61cbb0fc81e99e1 (patch) | |
tree | d4fb843619cd4db7da6c42610aaeed1630a94d74 | |
parent | 5b1292dfc5bfb481cbff4925a0f330e155411173 (diff) | |
download | cryptopp-git-420d8ca90d12f1fae9684ef3e61cbb0fc81e99e1.tar.gz |
Update command handler in test.cpp
-rw-r--r-- | test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -398,7 +398,10 @@ int scoped_main(int argc, char *argv[]) else if (command == "ir")
InformationRecoverFile(argc-3, argv[2], argv+3);
else if (command == "v" || command == "vv")
- return !Validate(argc>2 ? StringToValue<int, true>(argv[2]) : 0, command == "vv" /*thorough*/);
+ {
+ int testNumber = argc>2 ? StringToValue<int, true>(argv[2]) : 0;
+ return Validate(testNumber, command == "vv" /*thorough*/) ? 0 : 1;
+ }
else if (command.substr(0,1) == "b") // "b", "b1", "b2", ...
BenchmarkWithCommand(argc, argv);
else if (command == "z")
|