File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ void TestXmlReport::testUnquoteMessage()
3737
3838void TestXmlReport::testGetVersion1 ()
3939{
40- const QString filepath (" ../xmlfiles/xmlreport_v1.xml" );
40+ const QString filepath (QString (SRCDIR) + " / ../xmlfiles/xmlreport_v1.xml" );
4141 QCOMPARE (XmlReport::determineVersion (filepath), 1 );
4242}
4343
4444void TestXmlReport::testGetVersion2 ()
4545{
46- const QString filepath (" ../xmlfiles/xmlreport_v2.xml" );
46+ const QString filepath (QString (SRCDIR) + " / ../xmlfiles/xmlreport_v2.xml" );
4747 QCOMPARE (XmlReport::determineVersion (filepath), 2 );
4848}
4949
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ INCLUDEPATH += .
55OBJECTS_DIR = ../build
66MOC_DIR = ../build
77
8+ DEFINES += SRCDIR =\ \\"$$PWD\\\"
9+
810include (../common.pri )
911
1012# tests
Original file line number Diff line number Diff line change 2525
2626void TestXmlReportV1::readXml ()
2727{
28- const QString filepath (" ../xmlfiles/xmlreport_v1.xml" );
28+ const QString filepath (QString (SRCDIR) + " / ../xmlfiles/xmlreport_v1.xml" );
2929 XmlReportV1 report (filepath);
3030 QVERIFY (report.Open ());
3131 QList<ErrorItem> errors = report.Read ();
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ INCLUDEPATH += .
55OBJECTS_DIR = ../build
66MOC_DIR = ../build
77
8+ DEFINES += SRCDIR =\ \\"$$PWD\\\"
9+
810include (../common.pri )
911
1012# tests
Original file line number Diff line number Diff line change 2525
2626void TestXmlReportV2::readXml ()
2727{
28- const QString filepath (" ../xmlfiles/xmlreport_v2.xml" );
28+ const QString filepath (QString (SRCDIR) + " / ../xmlfiles/xmlreport_v2.xml" );
2929 XmlReportV2 report (filepath);
3030 QVERIFY (report.Open ());
3131 QList<ErrorItem> errors = report.Read ();
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ MOC_DIR = ../build
77
88include (../common.pri )
99
10+ DEFINES += SRCDIR =\ \\"$$PWD\\\"
11+
1012# tests
1113SOURCES += testxmlreportv2.cpp
1214
You can’t perform that action at this time.
0 commit comments