@@ -233,7 +233,9 @@ class TestCmdlineParser : public TestFixture {
233233 TEST_CASE (outputFormatImplicitPlist);
234234 TEST_CASE (outputFormatImplicitXml);
235235 TEST_CASE (outputFormatOverridePlist);
236- TEST_CASE (outputFormatMixed);
236+ TEST_CASE (outputFormatMixed1);
237+ TEST_CASE (outputFormatMixed2);
238+ TEST_CASE (outputFormatMixed3);
237239 TEST_CASE (premiumOptions1);
238240 TEST_CASE (premiumOptions2);
239241 TEST_CASE (premiumOptions3);
@@ -1430,23 +1432,25 @@ class TestCmdlineParser : public TestFixture {
14301432 ASSERT_EQUALS (" " , settings->plistOutput );
14311433 }
14321434
1433- void outputFormatMixed () {
1435+ void outputFormatMixed1 () {
14341436 REDIRECT;
1435- {
1436- const char * const argv[] = {" cppcheck" , " --xml" , " --output-format=xml" , " file.cpp" };
1437- ASSERT_EQUALS_ENUM (CmdLineParser::Result::Fail, parseFromArgs (argv));
1438- ASSERT_EQUALS (" cppcheck: error: '--output-format' and '--xml...' may not be used in conjunction.\n " , logger->str ());
1439- }
1440- {
1441- const char * const argv[] = {" cppcheck" , " --output-format=xml" , " --xml" , " file.cpp" };
1442- ASSERT_EQUALS_ENUM (CmdLineParser::Result::Fail, parseFromArgs (argv));
1443- ASSERT_EQUALS (" cppcheck: error: '--output-format' and '--xml...' may not be used in conjunction.\n " , logger->str ());
1444- }
1445- {
1446- const char * const argv[] = {" cppcheck" , " --xml-version=2" , " --output-format=xml" , " file.cpp" };
1447- ASSERT_EQUALS_ENUM (CmdLineParser::Result::Fail, parseFromArgs (argv));
1448- ASSERT_EQUALS (" cppcheck: error: '--output-format' and '--xml...' may not be used in conjunction.\n " , logger->str ());
1449- }
1437+ const char * const argv[] = {" cppcheck" , " --xml" , " --output-format=xml" , " file.cpp" };
1438+ ASSERT_EQUALS_ENUM (CmdLineParser::Result::Fail, parseFromArgs (argv));
1439+ ASSERT_EQUALS (" cppcheck: error: '--output-format' and '--xml...' may not be used in conjunction.\n " , logger->str ());
1440+ }
1441+
1442+ void outputFormatMixed2 () {
1443+ REDIRECT;
1444+ const char * const argv[] = {" cppcheck" , " --output-format=xml" , " --xml" , " file.cpp" };
1445+ ASSERT_EQUALS_ENUM (CmdLineParser::Result::Fail, parseFromArgs (argv));
1446+ ASSERT_EQUALS (" cppcheck: error: '--output-format' and '--xml...' may not be used in conjunction.\n " , logger->str ());
1447+ }
1448+
1449+ void outputFormatMixed3 () {
1450+ REDIRECT;
1451+ const char * const argv[] = {" cppcheck" , " --xml-version=2" , " --output-format=xml" , " file.cpp" };
1452+ ASSERT_EQUALS_ENUM (CmdLineParser::Result::Fail, parseFromArgs (argv));
1453+ ASSERT_EQUALS (" cppcheck: error: '--output-format' and '--xml...' may not be used in conjunction.\n " , logger->str ());
14501454 }
14511455
14521456 void premiumOptions1 () {
0 commit comments