Skip to content

Commit

Permalink
CI: fix --version tests (#5790)
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Dec 22, 2023
1 parent 5968a41 commit 1324a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testcmdlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ class TestCmdlineParser : public TestFixture {
REDIRECT;
const char * const argv[] = {"cppcheck", "--version"};
ASSERT_EQUALS(CmdLineParser::Result::Exit, parser->parseFromArgs(2, argv));
ASSERT_EQUALS("Cppcheck 2.13 dev\n", logger->str());
ASSERT(logger->str().compare(0, 11, "Cppcheck 2.") == 0);
}

void versionWithCfg() {
Expand All @@ -431,7 +431,7 @@ class TestCmdlineParser : public TestFixture {
REDIRECT;
const char * const argv[] = {"cppcheck", "--library=missing", "--version"};
ASSERT_EQUALS(CmdLineParser::Result::Exit, parser->parseFromArgs(3, argv));
ASSERT_EQUALS("Cppcheck 2.13 dev\n", logger->str());
ASSERT(logger->str().compare(0, 11, "Cppcheck 2.") == 0);
}

void versionWithInvalidCfg() {
Expand Down

0 comments on commit 1324a80

Please sign in to comment.