Commit 6e877ec8 authored by hjk's avatar hjk Committed by hjk

utils: make QTC_ASSERT output compatible with outputpane parser

Change-Id: Icdb423ec16b06538446aac4d248726dae8af97f1
Reviewed-on: http://codereview.qt.nokia.com/3874Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 57ae91c5
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment