summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2022-08-24 01:37:30 -0400
committerJeffrey Walton <noloader@gmail.com>2022-08-24 01:37:30 -0400
commit420d8ca90d12f1fae9684ef3e61cbb0fc81e99e1 (patch)
treed4fb843619cd4db7da6c42610aaeed1630a94d74
parent5b1292dfc5bfb481cbff4925a0f330e155411173 (diff)
downloadcryptopp-git-420d8ca90d12f1fae9684ef3e61cbb0fc81e99e1.tar.gz
Update command handler in test.cpp
-rw-r--r--test.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test.cpp b/test.cpp
index 075a87ae..9564b611 100644
--- a/test.cpp
+++ b/test.cpp
@@ -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")