From 6f3fd26ab849ac712d72b14b16ee41a2433fd029 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 7 Aug 2022 11:11:19 -0400 Subject: [PATCH] Update test program --- test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.cpp b/test.cpp index 3665dc094..73ab43929 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(argv[2]) : 0, argv[1][1] == 'v'); + return !Validate(argc>2 ? StringToValue(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") {