Skip to content
Browse files

testcmdlineparser: comment out unused functions fileListStdin(), igno…

…repaths{1-4}(), ignorefilepaths{1,2}()
  • Loading branch information...
1 parent 4f918e1 commit f6da9d4e3c2f889be5202b1cbcc159ec3ff9a37b @matthiaskrgr matthiaskrgr committed Jan 6, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/testcmdlineparser.cpp
View
8 test/testcmdlineparser.cpp
@@ -602,13 +602,13 @@ class TestCmdlineParser : public TestFixture {
TODO_ASSERT_EQUALS(true, false, defParser.ParseFromArgs(4, argv));
}
- void fileListStdin() {
+/* void fileListStdin() {
// TODO: Give it some stdin to read from, fails because the list of
// files in stdin (_pathnames) is empty
REDIRECT;
const char *argv[] = {"cppcheck", "--file-list=-", "file.cpp"};
TODO_ASSERT_EQUALS(true, false, defParser.ParseFromArgs(3, argv));
- }
+ } */
void inlineSuppr() {
REDIRECT;
@@ -925,7 +925,7 @@ class TestCmdlineParser : public TestFixture {
ASSERT_EQUALS(false, parser.ParseFromArgs(2, argv));
ASSERT_EQUALS(0, parser.GetIgnoredPaths().size());
}
-
+/*
void ignorepaths1() {
REDIRECT;
const char *argv[] = {"cppcheck", "-isrc", "file.cpp"};
@@ -981,7 +981,7 @@ class TestCmdlineParser : public TestFixture {
ASSERT_EQUALS(1, parser.GetIgnoredPaths().size());
ASSERT_EQUALS("src/foo.cpp", parser.GetIgnoredPaths()[0]);
}
-
+*/
void checkconfig() {
REDIRECT;
const char *argv[] = {"cppcheck", "--check-config", "file.cpp"};

2 comments on commit f6da9d4

@kimmov
kimmov commented on f6da9d4 Jan 10, 2014

Why comment out instead of figuring out why they are not run? Broken?

@matthiaskrgr
Collaborator

Apparently the test have been taken out of order some time ago:

    // Disabling these tests since they use relative paths to the
    // testrunner executable.
    //TEST_CASE(ignorepaths1);
    //TEST_CASE(ignorepaths2);
    //TEST_CASE(ignorepaths3);
    //TEST_CASE(ignorepaths4);
    //TEST_CASE(ignorefilepaths1);
    //TEST_CASE(ignorefilepaths2);

(testcmdlineparser.cpp)

Please sign in to comment.
Something went wrong with that request. Please try again.