CI: fix --version tests (#5790)

This commit is contained in:
Daniel Marjamäki 2023-12-22 19:57:55 +01:00 committed by GitHub
parent 36b8e54b71
commit 5a222b80a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -410,7 +410,7 @@ private:
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() {
@ -431,7 +431,7 @@ private:
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() {