diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-11-07 14:47:59 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-09 01:09:27 +0100 |
commit | 9de6257657a4c23f35a5936b1df7d5657d33847b (patch) | |
tree | 9d2b22e015ab09089fc69f95c0b3f90f64bc4f13 /tests/auto/corelib/statemachine/qstatemachine | |
parent | eb41f4be1ec661ee75b3a8eb30af880970aad74d (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/qstatemachine')
-rw-r--r-- | tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp b/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp index c379504d2c..5b9e078b69 100644 --- a/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp +++ b/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp @@ -54,20 +54,6 @@ #include "private/qstate_p.h" #include "private/qstatemachine_p.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= |