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:
parent
341161c26e
commit
3f36f9b650
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user