diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-03 06:12:05 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-04 04:37:12 (GMT) |
commit | fed42f25e129af1f4f2c03a075530ad7111d2fdd (patch) | |
tree | 452d7a253673679b6aeb769d58b857d005711ee8 /tests | |
parent | a54900d2227bfb2021c5d1255817824aff11cf32 (diff) | |
download | Qt-fed42f25e129af1f4f2c03a075530ad7111d2fdd.zip Qt-fed42f25e129af1f4f2c03a075530ad7111d2fdd.tar.gz Qt-fed42f25e129af1f4f2c03a075530ad7111d2fdd.tar.bz2 |
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')
-rw-r--r-- | tests/auto/qthread/tst_qthread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qthread/tst_qthread.cpp b/tests/auto/qthread/tst_qthread.cpp index c69052e..4e3d67d 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"); } }; |