summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlibrary
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-03 16:17:43 +1000
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-04 14:39:15 +1000
commit22aa68ecec96da4d14a4c9fe2f6e4a337b13b4a3 (patch)
treeb77a1edfe5aa035ee9468f9b1e389c6043e99a79 /tests/auto/qlibrary
parentb988b2f9f04ac0ebce7a779cd9bd5d394bfa1c95 (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
Diffstat (limited to 'tests/auto/qlibrary')
-rw-r--r--tests/auto/qlibrary/tst_qlibrary.cpp2
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);