diff options
author | Giuseppe D'Angelo <dangelog@gmail.com> | 2012-02-22 03:33:00 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-07 19:18:22 +0100 |
commit | eb709333989a7e3d8eb662a0e167ac81ca19d882 (patch) | |
tree | d1f72265b583b06c9b16e75f1dc6ab89eed2da25 /tests/auto/corelib/tools/qregularexpression/alwaysoptimize/alwaysoptimize.pro | |
parent | aee8f7d81eaec36e7d406607644f8fce294f7e21 (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/alwaysoptimize/alwaysoptimize.pro')
-rw-r--r-- | tests/auto/corelib/tools/qregularexpression/alwaysoptimize/alwaysoptimize.pro | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qregularexpression/alwaysoptimize/alwaysoptimize.pro b/tests/auto/corelib/tools/qregularexpression/alwaysoptimize/alwaysoptimize.pro new file mode 100644 index 0000000000..f48b1ee96a --- /dev/null +++ b/tests/auto/corelib/tools/qregularexpression/alwaysoptimize/alwaysoptimize.pro @@ -0,0 +1,7 @@ +CONFIG += testcase parallel_test +TARGET = tst_qregularexpression_alwaysoptimize +QT = core testlib +HEADERS = ../tst_qregularexpression.h +SOURCES = \ + tst_qregularexpression_alwaysoptimize.cpp \ + ../tst_qregularexpression.cpp |