summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsplitter
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-03-30 11:32:40 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-03-30 13:44:21 (GMT)
commitefbbb0ea53dfb8350f3f9b46dd5dc934051cedc7 (patch)
tree441ebffa9435bac5a9fc87c6a8ccfc50fd285cf3 /tests/auto/qsplitter
parent90cdbf8bd409652fd1e28adcd7f02fc1fae2c1c0 (diff)
downloadQt-efbbb0ea53dfb8350f3f9b46dd5dc934051cedc7.zip
Qt-efbbb0ea53dfb8350f3f9b46dd5dc934051cedc7.tar.gz
Qt-efbbb0ea53dfb8350f3f9b46dd5dc934051cedc7.tar.bz2
Fix test for QSplitter in shadow build
Diffstat (limited to 'tests/auto/qsplitter')
-rw-r--r--tests/auto/qsplitter/qsplitter.pro3
-rw-r--r--tests/auto/qsplitter/tst_qsplitter.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/qsplitter/qsplitter.pro b/tests/auto/qsplitter/qsplitter.pro
index 99f27b4..a7ff0a6 100644
--- a/tests/auto/qsplitter/qsplitter.pro
+++ b/tests/auto/qsplitter/qsplitter.pro
@@ -8,4 +8,7 @@ wince*: {
addFiles.sources = extradata.txt setSizes3.dat
addFiles.path = .
DEPLOYMENT += addFiles
+ DEFINES += SRCDIR=\\\"./\\\"
+} else {
+ DEFINES += SRCDIR=\\\"$$PWD/\\\"
}
diff --git a/tests/auto/qsplitter/tst_qsplitter.cpp b/tests/auto/qsplitter/tst_qsplitter.cpp
index b463f7f..33404e4 100644
--- a/tests/auto/qsplitter/tst_qsplitter.cpp
+++ b/tests/auto/qsplitter/tst_qsplitter.cpp
@@ -213,7 +213,7 @@ void tst_QSplitter::setSizes3_data()
QTest::addColumn<IntList>("collapsibleStates");
QTest::addColumn<bool>("childrenCollapse");
- QFile file("setSizes3.dat");
+ QFile file(SRCDIR "setSizes3.dat");
if (!file.open(QIODevice::ReadOnly)) {
qDebug() << "Can't open file, reason:" << file.errorString();
return;