summaryrefslogtreecommitdiffstats
path: root/tests/auto/qitemmodel/modelstotest.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-03 10:52:52 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2011-05-18 10:46:42 +1000
commit7c8c84d92beba1ca62cfebf9f05d925be43bf563 (patch)
tree6764aabd17566265b67627bfca05661a92dbcb3a /tests/auto/qitemmodel/modelstotest.cpp
parent35b01c17330608559e8b5e62cbc7277a2e419f2e (diff)
Remove Q_ASSERT from qitemmodel autotest
Allow createModel() to return a null model on failure (which it already did in release mode builds), but fail the test gracefully instead of crashing when a null model is returned. Change-Id: Iaa0ec31183e0c90fcea512223d01e07ed188a380 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 0d773d839e39f4f4bfd0bf9d652e4f2650adfcb0)
Diffstat (limited to 'tests/auto/qitemmodel/modelstotest.cpp')
-rw-r--r--tests/auto/qitemmodel/modelstotest.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qitemmodel/modelstotest.cpp b/tests/auto/qitemmodel/modelstotest.cpp
index c4c2cbb521..cec170334f 100644
--- a/tests/auto/qitemmodel/modelstotest.cpp
+++ b/tests/auto/qitemmodel/modelstotest.cpp
@@ -227,7 +227,6 @@ QAbstractItemModel *ModelsToTest::createModel(const QString &modelType)
return widget->model();
}
- Q_ASSERT(false);
return 0;
}