diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-04-19 02:05:59 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-04-19 02:35:19 (GMT) |
commit | ed5dd84582881bc30a5ce85902b37aae9c243978 (patch) | |
tree | d15ba074145520e1a716c5a1d4fd4aa98d522cc0 | |
parent | 10f3f270c8a319205590ae13bdeab063d5216441 (diff) | |
download | Qt-ed5dd84582881bc30a5ce85902b37aae9c243978.zip Qt-ed5dd84582881bc30a5ce85902b37aae9c243978.tar.gz Qt-ed5dd84582881bc30a5ce85902b37aae9c243978.tar.bz2 |
Remove Q_ASSERT calls from gestures autotest
Make the test report a useful warning, rather than terminating with an
unintelligible assertion failure, if the GestureState enum is ever
extended.
Change-Id: Ib876a5f2986cbea4e181678a83a72e0d1444f1ee
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
-rw-r--r-- | tests/auto/gestures/tst_gestures.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/gestures/tst_gestures.cpp b/tests/auto/gestures/tst_gestures.cpp index 7327a49..bff8a04 100644 --- a/tests/auto/gestures/tst_gestures.cpp +++ b/tests/auto/gestures/tst_gestures.cpp @@ -280,7 +280,7 @@ protected: eventsPtr->canceled << g->gestureType(); break; default: - Q_ASSERT(false); + qWarning() << "Unknown GestureState enum value:" << static_cast<int>(g->state()); } } } else if (event->type() == CustomEvent::EventType) { @@ -823,7 +823,7 @@ public: emit gestureCanceled(e->type(), g); break; default: - Q_ASSERT(false); + qWarning() << "Unknown GestureState enum value:" << static_cast<int>(g->state()); } } } else if (event->type() == CustomEvent::EventType) { |