Remove Q_ASSERT from qabstractxmlnodemodel test
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 6 May 2011 04:08:10 +0000 (14:08 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 01:04:38 +0000 (11:04 +1000)
commit8a8db4426809fed7b47460003eca98e65603e9e4
tree5ecf888793507acad640d1b757fc86eb61fdaa75
parentcaac04babbfdca7a3ffa604b5bb89bddd60a0d5d
Remove Q_ASSERT from qabstractxmlnodemodel test

Instead of aborting in debug builds and failing silently in release
builds, print a meaningful warning message into the test output and
return a null QVariant.

Change-Id: Idcd70f5cb01528b522d84e391f6f8692a189f420
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit a0496d1db09dfaa6a2b31a5c23e154de7b4a2eb7)
tests/auto/qabstractxmlnodemodel/LoadingModel.cpp