summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/statemachine/qstate/tst_qstate.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-07 14:47:59 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-09 01:09:27 +0100
commit9de6257657a4c23f35a5936b1df7d5657d33847b (patch)
tree9d2b22e015ab09089fc69f95c0b3f90f64bc4f13 /tests/auto/corelib/statemachine/qstate/tst_qstate.cpp
parenteb41f4be1ec661ee75b3a8eb30af880970aad74d (diff)
Remove redundant copies of QTRY_COMPARE.
QTRY_COMPARE is now part of qtestlib, so there's no need for copies of it. Change-Id: Ied4e7d3b30c1cf16ddcbf8655e4d976e74c2bd8a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/statemachine/qstate/tst_qstate.cpp')
-rw-r--r--tests/auto/corelib/statemachine/qstate/tst_qstate.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/auto/corelib/statemachine/qstate/tst_qstate.cpp b/tests/auto/corelib/statemachine/qstate/tst_qstate.cpp
index 9950f85cfc..59170cf703 100644
--- a/tests/auto/corelib/statemachine/qstate/tst_qstate.cpp
+++ b/tests/auto/corelib/statemachine/qstate/tst_qstate.cpp
@@ -45,20 +45,6 @@
#include "qstatemachine.h"
#include "qsignaltransition.h"
-// Will try to wait for the condition while allowing event processing
-#define QTRY_COMPARE(__expr, __expected) \
- do { \
- const int __step = 50; \
- const int __timeout = 5000; \
- if ((__expr) != (__expected)) { \
- QTest::qWait(0); \
- } \
- for (int __i = 0; __i < __timeout && ((__expr) != (__expected)); __i+=__step) { \
- QTest::qWait(__step); \
- } \
- QCOMPARE(__expr, __expected); \
- } while(0)
-
//TESTED_CLASS=
//TESTED_FILES=