summaryrefslogtreecommitdiffstats
path: root/tests/testutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils.h')
-rw-r--r--tests/testutils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/testutils.h b/tests/testutils.h
index f464e76..717f2ec 100644
--- a/tests/testutils.h
+++ b/tests/testutils.h
@@ -38,6 +38,14 @@ do {\
38 return;\ 38 return;\
39} while (0) 39} while (0)
40 40
41#define VERIFYEXEC_RET(statement, return) \
42do {\
43 auto result = statement.exec(); \
44 result.waitForFinished(); \
45 if (!QTest::qVerify(!result.errorCode(), #statement, "", __FILE__, __LINE__))\
46 return #return;\
47} while (0)
48
41#define VERIFYEXEC_FAIL(statement) \ 49#define VERIFYEXEC_FAIL(statement) \
42do {\ 50do {\
43 auto result = statement.exec(); \ 51 auto result = statement.exec(); \