summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-10-31 11:32:22 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-31 05:27:40 +0100
commit9d606227c6ae9e11614ab20fd1d0277e4b8594d9 (patch)
tree05e32e3629f21575ed10b444e9da8d6cbfb6e633 /tests
parent5a71947ee46d3278255b69cec5621b5a70b92be4 (diff)
Remove obsolete code from qtconcurrentiteratekernel test.
The removed code refers to WhileIteration, which does not exist. Change-Id: I4c44bc319ac776d16ce9ba7b5c2938ce1642a3f6 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/concurrent/qtconcurrentiteratekernel/tst_qtconcurrentiteratekernel.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/auto/corelib/concurrent/qtconcurrentiteratekernel/tst_qtconcurrentiteratekernel.cpp b/tests/auto/corelib/concurrent/qtconcurrentiteratekernel/tst_qtconcurrentiteratekernel.cpp
index 65c3f53a52..4af71d58fd 100644
--- a/tests/auto/corelib/concurrent/qtconcurrentiteratekernel/tst_qtconcurrentiteratekernel.cpp
+++ b/tests/auto/corelib/concurrent/qtconcurrentiteratekernel/tst_qtconcurrentiteratekernel.cpp
@@ -100,11 +100,6 @@ private slots:
void blockSize();
void multipleResults();
#endif
-#if 0
- //"while" iterations tests:
- void instantiateWhile();
- void stresstestWhile();
-#endif
};
QAtomicInt iterations;
@@ -309,45 +304,6 @@ void tst_QtConcurrentIterateKernel::multipleResults()
}
#endif
-#if 0
-class PrintWhile : public IterateKernel<TestIterator, void>
-{
-public:
- PrintWhile() : IterateKernel<TestIterator, void>(0, 10, WhileIteration) { }
- bool runIteration(TestIterator it, TestIterator, void *)
- {
- return false;
- }
-};
-
-void tst_QtConcurrentIterateKernel::instantiateWhile()
-{
- PrintWhile w;
- w.startBlocking();
-}
-
-QAtomicInt iterationCount;
-class StressWhile : public IterateKernel<TestIterator, void>
-{
-public:
- StressWhile(TestIterator iterations) : IterateKernel<TestIterator, void>(0, iterations, WhileIteration) { }
- bool runIteration(TestIterator it, TestIterator index, void *)
- {
- if (it == index) // should match.
- ::iterationCount.ref();
- return false;
- }
-};
-
-void tst_QtConcurrentIterateKernel::stresstestWhile()
-{
- int iterations = 100000;
- StressWhile w(iterations);
- w.startBlocking();
- QCOMPARE(int(iterationCount), iterations);
-}
-#endif
-
QTEST_MAIN(tst_QtConcurrentIterateKernel)
#include "tst_qtconcurrentiteratekernel.moc"