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 f89da38..6e935f3 100644
--- a/tests/testutils.h
+++ b/tests/testutils.h
@@ -45,3 +45,11 @@ do {\
45 if (!QTest::qVerify(result.errorCode(), #statement, "", __FILE__, __LINE__))\ 45 if (!QTest::qVerify(result.errorCode(), #statement, "", __FILE__, __LINE__))\
46 return;\ 46 return;\
47} while (0) 47} while (0)
48
49#define QUICK_TRY_VERIFY(statement) \
50do {\
51 static int timeout = 5000; \
52 for (int i = 0; i < timeout && #statement; i++) { \
53 QTest::qWait(1); \
54 } \
55} while (0)