@@ -57,8 +57,6 @@ class TestCppcheck : public TestFixture
5757 void run ()
5858 {
5959 // TEST_CASE(getErrorMessages);
60- // TEST_CASE(parseOutputtingArgs);
61- // TEST_CASE(parseArgsAndCheck);
6260 }
6361
6462#if 0
@@ -122,17 +120,6 @@ class TestCppcheck : public TestFixture
122120
123121 return result;
124122 }
125-
126- void parseArgsAndCheck()
127- {
128- {
129- const char *argv[] = {"cppcheck", "--showtime=top5"};
130- const char *data = "void foo(){}";
131- ASSERT_EQUALS(true, argCheckWithCheck(2, argv, data));
132- ASSERT_EQUALS("", errout.str());
133- // ASSERT_EQUALS(true, output.str().find("Overall time:") != std::string::npos);
134- }
135- }
136123#endif
137124
138125 void parseErrorList (const char * xmlData)
@@ -166,54 +153,6 @@ class TestCppcheck : public TestFixture
166153 }
167154 }
168155
169- #if 0
170- void parseOutputtingArgs()
171- {
172- {
173- const char *argv[] = { "cppcheck", "--errorlist" };
174- ASSERT_EQUALS(true, argCheckWithCoutCerrRedirect(2, argv));
175- ASSERT_EQUALS("", errout.str());
176- parseErrorList(output.str().c_str());
177- }
178-
179- {
180- const char *argv[] = {"cppcheck", "--help"};
181- ASSERT_EQUALS(true, argCheck(2, argv));
182- ASSERT_EQUALS("", errout.str());
183- ASSERT_EQUALS(true, output.str().find("Example usage") != std::string::npos);
184- }
185-
186- {
187- const char *argv[] = {"cppcheck", "-h"};
188- ASSERT_EQUALS(true, argCheck(2, argv));
189- ASSERT_EQUALS("", errout.str());
190- ASSERT_EQUALS(true, output.str().find("Example usage") != std::string::npos);
191- }
192-
193- {
194- const char *argv[] = {"cppcheck"};
195- ASSERT_EQUALS(true, argCheck(1, argv));
196- ASSERT_EQUALS("", errout.str());
197- ASSERT_EQUALS(true, output.str().find("Example usage") != std::string::npos);
198- }
199-
200- {
201- const char *argv[] = {"cppcheck", "--version"};
202- ASSERT_EQUALS(true, argCheck(2, argv));
203- ASSERT_EQUALS("", errout.str());
204- ASSERT_EQUALS(std::string("Cppcheck ") + CppCheck::version() + "\n", output.str());
205- }
206-
207- {
208- const char *argv[] = {"cppcheck", "--doc"};
209- ASSERT_EQUALS(true, argCheck(2, argv));
210- ASSERT_EQUALS("", errout.str());
211- ASSERT_EQUALS(true, output.str().find("===Bounds checking===") != std::string::npos);
212- ASSERT_EQUALS(true, output.str().find("===Unused functions===") != std::string::npos);
213- }
214- }
215- #endif
216-
217156 void getErrorMessages ()
218157 {
219158 errout.str (" " );
0 commit comments