Skip to content

Commit c841908

Browse files
author
Daniel Marjamäki
committed
testcppcheck: command line parsing of -D is tested in testcmdlineparser.cpp
1 parent 03ddfcb commit c841908

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

test/testcppcheck.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ class TestCppcheck : public TestFixture
6868
//TEST_CASE(parseOutputtingArgs);
6969
//TEST_CASE(parseOutputtingInvalidArgs);
7070
//TEST_CASE(parseArgsAndCheck);
71-
72-
//TEST_CASE(userdefines);
7371
}
7472

7573
#if 0
@@ -388,19 +386,6 @@ class TestCppcheck : public TestFixture
388386
cppCheck.getErrorMessages();
389387
}
390388

391-
#if 0
392-
void userdefines()
393-
{
394-
{
395-
const char *argv[] = {"cppcheck", "-DA", "-DB"};
396-
Settings settings;
397-
ASSERT_EQUALS(true, argCheckReturnSettings(3, argv, settings));
398-
ASSERT_EQUALS("A;B", settings.userDefines);
399-
ASSERT_EQUALS("", errout.str());
400-
ASSERT_EQUALS("", output.str());
401-
}
402-
}
403-
#endif
404389
};
405390

406391
REGISTER_TEST(TestCppcheck)

0 commit comments

Comments
 (0)