From 6e877ec8ab08b5ed1c4d6891364d690dbd2b9bf4 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Mon, 29 Aug 2011 17:04:57 +0200 Subject: [PATCH] utils: make QTC_ASSERT output compatible with outputpane parser Change-Id: Icdb423ec16b06538446aac4d248726dae8af97f1 Reviewed-on: http://codereview.qt.nokia.com/3874 Reviewed-by: Eike Ziller <eike.ziller@nokia.com> --- src/libs/utils/qtcassert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/utils/qtcassert.h b/src/libs/utils/qtcassert.h index c33581b76b0..5afdd12d84e 100644 --- a/src/libs/utils/qtcassert.h +++ b/src/libs/utils/qtcassert.h @@ -42,10 +42,10 @@ // 'break' and 'continue' as 'actions'. #define QTC_ASSERT(cond, action) \ - if(cond){}else{qDebug()<<"ASSERTION " #cond " FAILED AT " __FILE__ ":" QTC_ASSERT_STRINGIFY(__LINE__);action;} + if(cond){}else{qDebug()<<"SOFT ASSERT: \""#cond"\" in file " __FILE__ ", line " QTC_ASSERT_STRINGIFY(__LINE__);action;} #define QTC_CHECK(cond) \ - if(cond){}else{qDebug()<<"ASSERTION " #cond " FAILED AT " __FILE__ ":" QTC_ASSERT_STRINGIFY(__LINE__);} + if(cond){}else{qDebug()<<"SOFT ASSERT: \""#cond"\" in file " __FILE__ ", line " QTC_ASSERT_STRINGIFY(__LINE__);} #endif // QTC_ASSERT_H -- GitLab