summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptvalue/tst_qscriptvalue.h
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2010-03-04 14:19:58 (GMT)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2010-03-04 14:42:34 (GMT)
commitc5d04bb263528e665ed0423a27af3cc4bd40e9f2 (patch)
treec7962daf597e0e2058162a8331fec0bfc399e1b5 /tests/auto/qscriptvalue/tst_qscriptvalue.h
parent22a54680149d8fe5170f16e6aba7aff645b43da2 (diff)
downloadQt-c5d04bb263528e665ed0423a27af3cc4bd40e9f2.zip
Qt-c5d04bb263528e665ed0423a27af3cc4bd40e9f2.tar.gz
Qt-c5d04bb263528e665ed0423a27af3cc4bd40e9f2.tar.bz2
Reduce compiling time of QScriptValue autotest suite on Windows.
The QScriptValue autotest suite compiles about 24 min with MSVS2008, which is unacceptable. Tests were splited into a few files for better use of distributed compilation. Repeated calls to insert() and operator<<() where replaced by loops, that should reduce time of code optimizing. Reviewed-by: Kent Hansen
Diffstat (limited to 'tests/auto/qscriptvalue/tst_qscriptvalue.h')
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.h b/tests/auto/qscriptvalue/tst_qscriptvalue.h
index a5c7b45..aae35b2 100644
--- a/tests/auto/qscriptvalue/tst_qscriptvalue.h
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue.h
@@ -49,6 +49,8 @@
#include <QtScript/qscriptvalue.h>
#include <QtTest/QtTest>
+#define DEFINE_TEST_VALUE(expr) m_values.insert(QString::fromLatin1(#expr), expr)
+
Q_DECLARE_METATYPE(QVariant)
Q_DECLARE_METATYPE(QScriptValue)