Remove unused QTRY_WAIT macros.
Change-Id: I8484c19d0458d9ec9a3a621fa0b866258e8212c3 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
0811215f40
commit
3effd6bc12
@@ -98,21 +98,6 @@ QT_USE_NAMESPACE
|
|||||||
} while(0)
|
} while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define QTRY_WAIT(code, __expr) \
|
|
||||||
do { \
|
|
||||||
const int __step = 50; \
|
|
||||||
const int __timeout = 10000; \
|
|
||||||
if (!(__expr)) { \
|
|
||||||
QTest::qWait(0); \
|
|
||||||
} \
|
|
||||||
for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \
|
|
||||||
do { code } while(0); \
|
|
||||||
QTest::qWait(__step); \
|
|
||||||
} \
|
|
||||||
} while(0)
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This is the backend conformance test.
|
This is the backend conformance test.
|
||||||
|
|
||||||
|
|||||||
@@ -52,20 +52,6 @@
|
|||||||
|
|
||||||
QT_USE_NAMESPACE
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
#define QTRY_WAIT(code, __expr) \
|
|
||||||
do { \
|
|
||||||
const int __step = 50; \
|
|
||||||
const int __timeout = 5000; \
|
|
||||||
if (!(__expr)) { \
|
|
||||||
QTest::qWait(0); \
|
|
||||||
} \
|
|
||||||
for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \
|
|
||||||
do { code } while(0); \
|
|
||||||
QTest::qWait(__step); \
|
|
||||||
} \
|
|
||||||
} while(0)
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This is the backend conformance test.
|
This is the backend conformance test.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user