diff options
author | Jeffrey Walton <noloader@gmail.com> | 2022-08-07 11:11:19 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2022-08-07 11:11:19 -0400 |
commit | 6f3fd26ab849ac712d72b14b16ee41a2433fd029 (patch) | |
tree | 6fdf29e0507d9337fa79f21916283203f7571b56 | |
parent | 02f4361d4780830e3e5a56430e77e9514e3817dc (diff) | |
download | cryptopp-git-6f3fd26ab849ac712d72b14b16ee41a2433fd029.tar.gz |
Update test program
-rw-r--r-- | test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")
{
|