Skip to content

Commit

Permalink
Update test program
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Aug 7, 2022
1 parent 02f4361 commit 6f3fd26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
{
Expand Down

1 comment on commit 6f3fd26

@noloader
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.