From 420d8ca90d12f1fae9684ef3e61cbb0fc81e99e1 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 24 Aug 2022 01:37:30 -0400 Subject: [PATCH] Update command handler in test.cpp --- test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(argv[2]) : 0, command == "vv" /*thorough*/); + { + int testNumber = argc>2 ? StringToValue(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")