summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2022-08-07 11:11:19 -0400
committerJeffrey Walton <noloader@gmail.com>2022-08-07 11:11:19 -0400
commit6f3fd26ab849ac712d72b14b16ee41a2433fd029 (patch)
tree6fdf29e0507d9337fa79f21916283203f7571b56
parent02f4361d4780830e3e5a56430e77e9514e3817dc (diff)
downloadcryptopp-git-6f3fd26ab849ac712d72b14b16ee41a2433fd029.tar.gz
Update test program
-rw-r--r--test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.cpp b/test.cpp
index 3665dc09..73ab4392 100644
--- a/test.cpp
+++ b/test.cpp
@@ -398,7 +398,7 @@ 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, argv[1][1] == 'v');
+ return !Validate(argc>2 ? StringToValue<int, true>(argv[2]) : 0, command == "vv" /*thorough*/);
else if (command.substr(0,1) == "b") // "b", "b1", "b2", ...
BenchmarkWithCommand(argc, argv);
else if (command == "z")
@@ -426,7 +426,7 @@ int scoped_main(int argc, char *argv[])
else if (command == "h")
{
FileSource usage(DataDir("TestData/usage.dat").c_str(), true, new FileSink(std::cout));
- return 1;
+ return argv[1][0] == 'h' ? 0 : 1;
}
else if (command == "V")
{