diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-03 16:17:43 +1000 |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-05-18 10:46:44 +1000 |
commit | f5662adb0368c74e1b0cf634d9792ceee35ed4b8 (patch) | |
tree | 0338c00e64a5927d3ff1e99c3ab13dd02f84e617 /tests/auto/qlibrary | |
parent | 42d6820c7c1f43b7fd633579c1ba494212d0176f (diff) |
Remove Q_ASSERT from QLibrary autotest
Report a regular test failure rather than aborting when an unknown
operation is requested.
Change-Id: I3678f42f9e9f895d8d0d49a768d4c8b575d1863f
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 22aa68ecec96da4d14a4c9fe2f6e4a337b13b4a3)
Diffstat (limited to 'tests/auto/qlibrary')
-rw-r--r-- | tests/auto/qlibrary/tst_qlibrary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qlibrary/tst_qlibrary.cpp b/tests/auto/qlibrary/tst_qlibrary.cpp index c79332d276..a8c60c93c2 100644 --- a/tests/auto/qlibrary/tst_qlibrary.cpp +++ b/tests/auto/qlibrary/tst_qlibrary.cpp @@ -468,7 +468,7 @@ void tst_QLibrary::errorString() } break;} default: - Q_ASSERT(0); + QFAIL(qPrintable(QString("Unknown operation: %1").arg(operation))); break; } QRegExp re(errorString); |