File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ class TestCmdlineParser : public TestFixture {
410410 REDIRECT;
411411 const char * const argv[] = {" cppcheck" , " --version" };
412412 ASSERT_EQUALS (CmdLineParser::Result::Exit, parser->parseFromArgs (2 , argv));
413- ASSERT_EQUALS ( " Cppcheck 2.13 dev \n " , logger-> str () );
413+ ASSERT (logger-> str (). compare ( 0 , 11 , " Cppcheck 2." ) == 0 );
414414 }
415415
416416 void versionWithCfg () {
@@ -431,7 +431,7 @@ class TestCmdlineParser : public TestFixture {
431431 REDIRECT;
432432 const char * const argv[] = {" cppcheck" , " --library=missing" , " --version" };
433433 ASSERT_EQUALS (CmdLineParser::Result::Exit, parser->parseFromArgs (3 , argv));
434- ASSERT_EQUALS ( " Cppcheck 2.13 dev \n " , logger-> str () );
434+ ASSERT (logger-> str (). compare ( 0 , 11 , " Cppcheck 2." ) == 0 );
435435 }
436436
437437 void versionWithInvalidCfg () {
You can’t perform that action at this time.
0 commit comments