Skip to content

Commit d5652ee

Browse files
committed
GUITESTS: Move testdata to data-subdirectory.
1 parent 82e8e1a commit d5652ee

8 files changed

Lines changed: 7 additions & 7 deletions

File tree

File renamed without changes.
File renamed without changes.

gui/test/projectfile/testprojectfile.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323

2424
void TestProjectFile::loadInexisting()
2525
{
26-
const QString filepath(QString(SRCDIR) + "/../projectfiles/foo.cppcheck");
26+
const QString filepath(QString(SRCDIR) + "/../data/projectfiles/foo.cppcheck");
2727
ProjectFile pfile(filepath);
2828
QCOMPARE(pfile.Read(), false);
2929
}
3030

3131
void TestProjectFile::loadSimple()
3232
{
33-
const QString filepath(QString(SRCDIR) + "/../projectfiles/simple.cppcheck");
33+
const QString filepath(QString(SRCDIR) + "/../data/projectfiles/simple.cppcheck");
3434
ProjectFile pfile(filepath);
3535
QVERIFY(pfile.Read());
3636
QCOMPARE(pfile.GetRootPath(), QString("../.."));
@@ -52,7 +52,7 @@ void TestProjectFile::loadSimple()
5252

5353
void TestProjectFile::loadSimpleNoroot()
5454
{
55-
const QString filepath(QString(SRCDIR) + "/../projectfiles/simple_noroot.cppcheck");
55+
const QString filepath(QString(SRCDIR) + "/../data/projectfiles/simple_noroot.cppcheck");
5656
ProjectFile pfile(filepath);
5757
QVERIFY(pfile.Read());
5858
QCOMPARE(pfile.GetRootPath(), QString());

gui/test/xmlreport/testxmlreport.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ void TestXmlReport::testUnquoteMessage()
3737

3838
void TestXmlReport::testGetVersion1()
3939
{
40-
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v1.xml");
40+
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v1.xml");
4141
QCOMPARE(XmlReport::determineVersion(filepath), 1);
4242
}
4343

4444
void TestXmlReport::testGetVersion2()
4545
{
46-
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v2.xml");
46+
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v2.xml");
4747
QCOMPARE(XmlReport::determineVersion(filepath), 2);
4848
}
4949

gui/test/xmlreportv1/testxmlreportv1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
void TestXmlReportV1::readXml()
2727
{
28-
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v1.xml");
28+
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v1.xml");
2929
XmlReportV1 report(filepath);
3030
QVERIFY(report.Open());
3131
QList<ErrorItem> errors = report.Read();

gui/test/xmlreportv2/testxmlreportv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
void TestXmlReportV2::readXml()
2727
{
28-
const QString filepath(QString(SRCDIR) + "/../xmlfiles/xmlreport_v2.xml");
28+
const QString filepath(QString(SRCDIR) + "/../data/xmlfiles/xmlreport_v2.xml");
2929
XmlReportV2 report(filepath);
3030
QVERIFY(report.Open());
3131
QList<ErrorItem> errors = report.Read();

0 commit comments

Comments
 (0)