GUITESTS: Move testdata to data-subdirectory.

This commit is contained in:
Kimmo Varis 2011-06-17 13:56:32 +03:00
parent 82e8e1a737
commit d5652ee3cc
8 changed files with 7 additions and 7 deletions

View File

@ -23,14 +23,14 @@
void TestProjectFile::loadInexisting()
{
const QString filepath(QString(SRCDIR) + "/../projectfiles/foo.cppcheck");
const QString filepath(QString(SRCDIR) + "/../data/projectfiles/foo.cppcheck");
ProjectFile pfile(filepath);
QCOMPARE(pfile.Read(), false);
}
void TestProjectFile::loadSimple()
{
const QString filepath(QString(SRCDIR) + "/../projectfiles/simple.cppcheck");
const QString filepath(QString(SRCDIR) + "/../data/projectfiles/simple.cppcheck");
ProjectFile pfile(filepath);
QVERIFY(pfile.Read());
QCOMPARE(pfile.GetRootPath(), QString("../.."));
@ -52,7 +52,7 @@ void TestProjectFile::loadSimple()
void TestProjectFile::loadSimpleNoroot()
{
const QString filepath(QString(SRCDIR) + "/../projectfiles/simple_noroot.cppcheck");
const QString filepath(QString(SRCDIR) + "/../data/projectfiles/simple_noroot.cppcheck");
ProjectFile pfile(filepath);
QVERIFY(pfile.Read());
QCOMPARE(pfile.GetRootPath(), QString());

View File

@ -37,13 +37,13 @@ void TestXmlReport::testUnquoteMessage()
void TestXmlReport::testGetVersion1()
{
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v1.xml");
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v1.xml");
QCOMPARE(XmlReport::determineVersion(filepath), 1);
}
void TestXmlReport::testGetVersion2()
{
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v2.xml");
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v2.xml");
QCOMPARE(XmlReport::determineVersion(filepath), 2);
}

View File

@ -25,7 +25,7 @@
void TestXmlReportV1::readXml()
{
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v1.xml");
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v1.xml");
XmlReportV1 report(filepath);
QVERIFY(report.Open());
QList<ErrorItem> errors = report.Read();

View File

@ -25,7 +25,7 @@
void TestXmlReportV2::readXml()
{
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v2.xml");
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v2.xml");
XmlReportV2 report(filepath);
QVERIFY(report.Open());
QList<ErrorItem> errors = report.Read();