diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-03-30 11:32:40 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-03-30 13:44:21 (GMT) |
commit | efbbb0ea53dfb8350f3f9b46dd5dc934051cedc7 (patch) | |
tree | 441ebffa9435bac5a9fc87c6a8ccfc50fd285cf3 | |
parent | 90cdbf8bd409652fd1e28adcd7f02fc1fae2c1c0 (diff) | |
download | Qt-efbbb0ea53dfb8350f3f9b46dd5dc934051cedc7.zip Qt-efbbb0ea53dfb8350f3f9b46dd5dc934051cedc7.tar.gz Qt-efbbb0ea53dfb8350f3f9b46dd5dc934051cedc7.tar.bz2 |
Fix test for QSplitter in shadow build
-rw-r--r-- | tests/auto/qsplitter/qsplitter.pro | 3 | ||||
-rw-r--r-- | tests/auto/qsplitter/tst_qsplitter.cpp | 2 |
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; |