Changed qsplitter unittest to work from install directory

- Changed qsplitter unittest to use TESTDATA and QFINDTESTDATA

Change-Id: I5db0fbfb20e6bd0ec169e884f16c1ec819f4e449
Reviewed-by: Kurt Korbatits  <kurt.korbatits@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Kurt Korbatits 2012-01-27 12:52:41 +10:00 committed by Qt by Nokia
parent 341161c26e
commit 3f36f9b650
2 changed files with 2 additions and 9 deletions

View File

@ -3,11 +3,4 @@ TARGET = tst_qsplitter
QT += widgets testlib
SOURCES += tst_qsplitter.cpp
wince* {
addFiles.files = extradata.txt setSizes3.dat
addFiles.path = .
DEPLOYMENT += addFiles
DEFINES += SRCDIR=\\\"./\\\"
} else {
DEFINES += SRCDIR=\\\"$$PWD/\\\"
}
TESTDATA += extradata.txt setSizes3.dat

View File

@ -198,7 +198,7 @@ void tst_QSplitter::setSizes_data()
QTest::addColumn<IntList>("collapsibleStates");
QTest::addColumn<bool>("childrenCollapse");
QFile file(SRCDIR "setSizes3.dat");
QFile file(QFINDTESTDATA("setSizes3.dat"));
if (!file.open(QIODevice::ReadOnly)) {
qDebug() << "Can't open file, reason:" << file.errorString();
return;