Skip to content

Commit

Permalink
[FIX] make sure version check is turned off for parse_called_twice un…
Browse files Browse the repository at this point in the history
…it test.
  • Loading branch information
smehringer committed Jul 19, 2019
1 parent b58c8f4 commit ac39c96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ TEST(parse_test, parse_called_twice)
{
std::string option_value;

const char * argv[] = {"./argument_parser_test", "-s", "option_string"};
argument_parser parser{"test_parser", 3, argv};
const char * argv[] = {"./argument_parser_test", "--version-check", "0", "-s", "option_string"};
argument_parser parser{"test_parser", 5, argv};
parser.add_option(option_value, 's', "string-option", "this is a string option.");

testing::internal::CaptureStderr();
Expand Down

0 comments on commit ac39c96

Please sign in to comment.