Remove Q_ASSERT from qitemmodel autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 3 May 2011 00:52:52 +0000 (10:52 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:42 +0000 (10:46 +1000)
commit7c8c84d92beba1ca62cfebf9f05d925be43bf563
tree6764aabd17566265b67627bfca05661a92dbcb3a
parent35b01c17330608559e8b5e62cbc7277a2e419f2e
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)
tests/auto/qitemmodel/modelstotest.cpp
tests/auto/qitemmodel/tst_qitemmodel.cpp