mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
bugfix
This commit is contained in:
parent
0f97d95c2f
commit
735c4a7dcf
1 changed files with 4 additions and 4 deletions
|
@ -217,7 +217,7 @@ do { \
|
|||
//
|
||||
#define QCOMPARE_WITH_LAMBDA(actual, expected, testClosure) \
|
||||
do { \
|
||||
if (!testClosure()) \
|
||||
if (!testClosure()) { \
|
||||
QTest_failWithMessage("Compared values are not the same", actual, expected, #actual, #expected, __LINE__, __FILE__); \
|
||||
return; \
|
||||
} \
|
||||
|
@ -233,9 +233,9 @@ do { \
|
|||
} while (0)
|
||||
|
||||
// Same as QCOMPARE_WITH_FUNCTION, but with a custom fail message
|
||||
#define QCOMPARE_WITH_LAMBDA(actual, expected, testClosure, failMessage) \
|
||||
do { \
|
||||
if (!testClosure()) \
|
||||
#define QCOMPARE_WITH_LAMBDA_AND_MESSAGE(actual, expected, testClosure, failMessage) \
|
||||
do { \
|
||||
if (!testClosure()) { \
|
||||
QTest_failWithMessage(failMessage, actual, expected, #actual, #expected, __LINE__, __FILE__); \
|
||||
return; \
|
||||
} \
|
||||
|
|
Loading…
Reference in a new issue