Update command handler in test.cpp

This commit is contained in:
Jeffrey Walton 2022-08-24 01:37:30 -04:00
parent 5b1292dfc5
commit 420d8ca90d
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -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")