testcppcheck: removed nonexistingpath and include tests. The Cppcheck class doesn't handle this.

This commit is contained in:
Daniel Marjamäki 2011-01-16 16:32:05 +01:00
parent f862b37c71
commit 206565c837
1 changed files with 0 additions and 23 deletions

View File

@ -56,9 +56,6 @@ private:
void run()
{
TEST_CASE(nonexistingpath);
TEST_CASE(include);
//TEST_CASE(getErrorMessages);
//TEST_CASE(parseOutputtingArgs);
//TEST_CASE(parseArgsAndCheck);
@ -217,26 +214,6 @@ private:
}
#endif
void nonexistingpath()
{
CppCheckExecutor exec;
const char *argv[] = { "", "idontexist" };
int retval = exec.check(2, argv);
ASSERT_EQUALS(retval, EXIT_FAILURE);
}
void include()
{
ErrorLogger::ErrorMessage errorMessage;
ErrorLogger::ErrorMessage::FileLocation loc;
loc.setfile("ab/cd/../ef.h");
errorMessage._callStack.push_back(loc);
const std::string fname(Path::toNativeSeparators("ab/ef.h"));
ASSERT_EQUALS("<error file=\"" + fname + "\" line=\"0\" id=\"\" severity=\"style\" msg=\"\"/>", errorMessage.toXML(false,1));
ASSERT_EQUALS("[" + fname + ":0]: ", errorMessage.toString(false));
}
void getErrorMessages()
{
errout.str("");