You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/testcmdlineparser.cpp
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2491,6 +2491,7 @@ class TestCmdlineParser : public TestFixture {
2491
2491
ASSERT_EQUALS(1, settings->rules.size());
2492
2492
auto it = settings->rules.cbegin();
2493
2493
ASSERT_EQUALS(".+", it->pattern);
2494
+
ASSERT_EQUALS("cppcheck: '--rule' has been deprecated and will be removed in a future Cppcheck version. Please use an addon instead.\n", logger->str());
2494
2495
}
2495
2496
2496
2497
voidruleMissingPattern() {
@@ -2547,6 +2548,7 @@ class TestCmdlineParser : public TestFixture {
ASSERT_EQUALS("cppcheck: '--rule-file' has been deprecated and will be removed in a future Cppcheck version. Please use an addon instead.\n", logger->str());
2550
2552
}
2551
2553
2552
2554
voidruleFileSingle() {
@@ -2570,6 +2572,7 @@ class TestCmdlineParser : public TestFixture {
ASSERT_EQUALS("cppcheck: '--rule-file' has been deprecated and will be removed in a future Cppcheck version. Please use an addon instead.\n", logger->str());
2573
2576
}
2574
2577
2575
2578
voidruleFileEmpty() {
@@ -2594,12 +2597,14 @@ class TestCmdlineParser : public TestFixture {
2594
2597
ASSERT_EQUALS("cppcheck: error: unable to load rule-file 'rule.xml' (XML_ERROR_EMPTY_DOCUMENT).\n", logger->str());
ASSERT_EQUALS("cppcheck: '--rule-file' has been deprecated and will be removed in a future Cppcheck version. Please use an addon instead.\n", logger->str());
0 commit comments