summaryrefslogtreecommitdiffstats
path: root/tests/auto/qitemmodel
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-06 05:22:07 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-06 07:34:29 (GMT)
commit6b2e89843a573cd7c143bca17cec8e69209d2fbd (patch)
tree4f7822af95a0c0fa9d0d3a37cecc553ecfa911bb /tests/auto/qitemmodel
parent75767c69fbba3149a4505287ed441886188a9fd3 (diff)
downloadQt-6b2e89843a573cd7c143bca17cec8e69209d2fbd.zip
Qt-6b2e89843a573cd7c143bca17cec8e69209d2fbd.tar.gz
Qt-6b2e89843a573cd7c143bca17cec8e69209d2fbd.tar.bz2
Remove Q_ASSERT from qitemmodel autotest
If populateTestData() is passed an unknown type of model, report a meaningful fatal error rather than failing silently in a release build and aborting with an uninformative error message in a debug build. Change-Id: I7ee8d1262bbced304f9f24c2ec9b40a38704d982 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests/auto/qitemmodel')
-rw-r--r--tests/auto/qitemmodel/modelstotest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qitemmodel/modelstotest.cpp b/tests/auto/qitemmodel/modelstotest.cpp
index cec1703..4e63307 100644
--- a/tests/auto/qitemmodel/modelstotest.cpp
+++ b/tests/auto/qitemmodel/modelstotest.cpp
@@ -372,7 +372,7 @@ QModelIndex ModelsToTest::populateTestArea(QAbstractItemModel *model)
return QModelIndex();
}
- Q_ASSERT(false);
+ qFatal("%s: unknown type of model", Q_FUNC_INFO);
return QModelIndex();
}