summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qregularexpression/qregularexpression.pro
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <dangelog@gmail.com>2012-02-22 03:33:00 +0000
committerQt by Nokia <qt-info@nokia.com>2012-03-07 19:18:22 +0100
commiteb709333989a7e3d8eb662a0e167ac81ca19d882 (patch)
treed1f72265b583b06c9b16e75f1dc6ab89eed2da25 /tests/auto/corelib/tools/qregularexpression/qregularexpression.pro
parentaee8f7d81eaec36e7d406607644f8fce294f7e21 (diff)
QRegularExpression: add optimizations autotest
Exporting the counter that controls the optimization of a compiled pattern lets us to forcibly optimize all patterns. Therefore, two tests are now run: one with default optimization values and another one which always optimizes the pattern. The counter itself was renamed with a qt_ prefix and put inside the Qt compilation namespace (thanks to rohanpm for pointing it out). Change-Id: I56602433d37adc127772b2d0d2cdaf2e49d43c71 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools/qregularexpression/qregularexpression.pro')
-rw-r--r--tests/auto/corelib/tools/qregularexpression/qregularexpression.pro7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/corelib/tools/qregularexpression/qregularexpression.pro b/tests/auto/corelib/tools/qregularexpression/qregularexpression.pro
index bce6643be6..0cae10112f 100644
--- a/tests/auto/corelib/tools/qregularexpression/qregularexpression.pro
+++ b/tests/auto/corelib/tools/qregularexpression/qregularexpression.pro
@@ -1,4 +1,3 @@
-CONFIG += testcase parallel_test
-TARGET = tst_qregularexpression
-QT = core testlib
-SOURCES = tst_qregularexpression.cpp
+TEMPLATE = subdirs
+SUBDIRS = defaultoptimize
+contains(QT_CONFIG,private_tests):SUBDIRS += alwaysoptimize