summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-09 01:50:23 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-09 08:26:02 (GMT)
commit136f39bbb63706819eb18d000f305edbe1cc6a81 (patch)
tree4ce4dd9a9a1aa58f9f9d7bab0e455cf99a73642f
parentb7d421da6d5e945b74ffbc3a7aa635a6ce63ebda (diff)
downloadQt-136f39bbb63706819eb18d000f305edbe1cc6a81.zip
Qt-136f39bbb63706819eb18d000f305edbe1cc6a81.tar.gz
Qt-136f39bbb63706819eb18d000f305edbe1cc6a81.tar.bz2
Remove Q_ASSERT's from QNetworkReply autotest
Rather than aborting in debug builds and ignoring the failure in release builds, report a fatal error in all builds. Change-Id: I1fb8e692c65cf23cf5d2453173db742260ddca48 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
-rw-r--r--tests/auto/qnetworkreply/tst_qnetworkreply.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp
index 2c79951..b5bbd84 100644
--- a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp
+++ b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp
@@ -582,9 +582,14 @@ public:
}
QIODevice *prepare(const QNetworkCacheMetaData &)
- { Q_ASSERT(0 && "Should not have tried to add to the cache"); return 0; }
+ {
+ qFatal("%s: Should not have tried to add to the cache", Q_FUNC_INFO);
+ return 0;
+ }
void insert(QIODevice *)
- { Q_ASSERT(0 && "Should not have tried to add to the cache"); }
+ {
+ qFatal("%s: Should not have tried to add to the cache", Q_FUNC_INFO);
+ }
void clear() { cache.clear(); }
};