Remove Q_ASSERT's from QAbstractFileEngine autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Thu, 5 May 2011 04:40:40 +0000 (14:40 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:45 +0000 (10:46 +1000)
commit8e9644a67ed4d3acd85b45e86033baaf57d5e5d2
tree7068aed1006dff5cb341d1d5fcbf9da04b7666cc
parent6aca191e108bb518f0b9debf78707577664bf71c
Remove Q_ASSERT's from QAbstractFileEngine autotest

Rather than aborting in debug builds and ignoring failures in release
builds, report meaningful warnings into the test output and return
sentinel values that will cause QVERIFY/QCOMPARE of the returned values
to fail the test.

Change-Id: I2c5a820637337d0762c71db10a4f270d36b31662
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 524bd6b7120f70a178b03bc6d337e08abd327076)
tests/auto/qabstractfileengine/tst_qabstractfileengine.cpp