summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-03 06:17:43 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-04 04:39:15 (GMT)
commit22aa68ecec96da4d14a4c9fe2f6e4a337b13b4a3 (patch)
treeb77a1edfe5aa035ee9468f9b1e389c6043e99a79
parentb988b2f9f04ac0ebce7a779cd9bd5d394bfa1c95 (diff)
downloadQt-22aa68ecec96da4d14a4c9fe2f6e4a337b13b4a3.zip
Qt-22aa68ecec96da4d14a4c9fe2f6e4a337b13b4a3.tar.gz
Qt-22aa68ecec96da4d14a4c9fe2f6e4a337b13b4a3.tar.bz2
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
-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 c79332d..a8c60c9 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);