summaryrefslogtreecommitdiffstats
path: root/tests/auto/qthread
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-03 16:12:05 +1000
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-04 14:37:12 +1000
commitfed42f25e129af1f4f2c03a075530ad7111d2fdd (patch)
tree452d7a253673679b6aeb769d58b857d005711ee8 /tests/auto/qthread
parenta54900d2227bfb2021c5d1255817824aff11cf32 (diff)
Remove Q_ASSERT from QThread autotest
Report a meaningful fatal error instead of aborting in debug mode builds and failing silently in release mode builds. Change-Id: If9a6c0655e021b3bb6b7d894aefd9bbcc58e4605 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests/auto/qthread')
-rw-r--r--tests/auto/qthread/tst_qthread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qthread/tst_qthread.cpp b/tests/auto/qthread/tst_qthread.cpp
index c69052ee7d..4e3d67df5a 100644
--- a/tests/auto/qthread/tst_qthread.cpp
+++ b/tests/auto/qthread/tst_qthread.cpp
@@ -207,7 +207,7 @@ public:
cond.wait(&mutex, five_minutes);
}
setTerminationEnabled(true);
- Q_ASSERT_X(false, "tst_QThread", "test case hung");
+ qFatal("tst_QThread: test case hung");
}
};