Skip to content

Commit

Permalink
Fix self check
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Mar 28, 2024
1 parent 6a94749 commit db9bd63
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 @@ -475,8 +475,8 @@ class TestCmdlineParser : public TestFixture {

void checkVersionCorrect() {
REDIRECT;
const std::string version = parser->getVersion();
const std::string checkVersion = "--check-version=" + version;
const std::string currentVersion = parser->getVersion();
const std::string checkVersion = "--check-version=" + currentVersion;
const char * const argv[] = {"cppcheck", checkVersion.c_str(), "file.cpp"};
ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parser->parseFromArgs(3, argv));
}
Expand Down

0 comments on commit db9bd63

Please sign in to comment.