Change QSKIP to fail for outdated tests.
Be more insistent that tests using the old two-argument version of QSKIP should be updated. After a grace period the warning will be removed and incorrect usage of QSKIP will revert to a compilation failure. Change-Id: Ifa19b856d9f45738bd9d790bb65a8741f965d0f4 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>bb10
parent
81e55fede7
commit
8fbad679e9
|
|
@ -128,8 +128,8 @@ do {\
|
|||
#define QSKIP(statement, ...) \
|
||||
do {\
|
||||
if (strcmp(#__VA_ARGS__, "") != 0)\
|
||||
QTest::qWarn("The two argument version of QSKIP is deprecated and will be removed soon. "\
|
||||
"Please update this test by removing the second parameter.", __FILE__, __LINE__);\
|
||||
QTest::qFail("The two argument version of QSKIP is no longer available. "\
|
||||
"Please update this test by removing the second argument in each QSKIP.", __FILE__, __LINE__);\
|
||||
QTest::qSkip(statement, __FILE__, __LINE__);\
|
||||
return;\
|
||||
} while (0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue