summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-05-27 06:31:28 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-05-27 06:31:28 (GMT)
commit33368fa3541fb38c3afc1d525da2cd837f2920a1 (patch)
treefec008159e986618feeae1c97588d9001498de0c /tests/auto
parentfca64a07d80d3a9284bb9f9bd831d01294fd2be0 (diff)
downloadQt-33368fa3541fb38c3afc1d525da2cd837f2920a1.zip
Qt-33368fa3541fb38c3afc1d525da2cd837f2920a1.tar.gz
Qt-33368fa3541fb38c3afc1d525da2cd837f2920a1.tar.bz2
Fixed qtemporaryfile test case compilation for Symbian OS.
Symbian mmp file format does not accept strings with quotes in defines. For this reason the SRCDIR need to be defined in sources.
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qtemporaryfile/qtemporaryfile.pro2
-rw-r--r--tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qtemporaryfile/qtemporaryfile.pro b/tests/auto/qtemporaryfile/qtemporaryfile.pro
index bde990a..a3a3910 100644
--- a/tests/auto/qtemporaryfile/qtemporaryfile.pro
+++ b/tests/auto/qtemporaryfile/qtemporaryfile.pro
@@ -2,4 +2,4 @@ load(qttest_p4)
SOURCES += tst_qtemporaryfile.cpp
QT = core
-DEFINES += SRCDIR=\\\"$$PWD/\\\"
+!symbian:DEFINES += SRCDIR=\\\"$$PWD/\\\"
diff --git a/tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp b/tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp
index 543a116..b9f1cc5 100644
--- a/tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp
+++ b/tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp
@@ -59,6 +59,10 @@
# include <unistd.h> // close(2)
#endif
+#ifdef Q_OS_SYMBIAN
+#define SRCDIR ""
+#endif
+
//TESTED_CLASS=
//TESTED_FILES=