summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-01-17 09:23:41 -0800
committerThiago Macieira <thiago.macieira@intel.com>2022-01-19 20:57:19 -0800
commite3112bfa90872319f9ee2da2b50a524ebe159f8f (patch)
tree595cf7c10c0ec557f5c7de76c97df9c40eaa8c62 /tests/auto
parent541253fcd601022870ab3a55ccb9fd52e4e1cc29 (diff)
tst_QMetaType: remove call to pthread_yield()
It was Linux-only and now even Linux is complaining: tst_qmetatype.cpp:421:26: warning: ‘int pthread_yield()’ is deprecated: pthread_yield is deprecated, use sched_yield instead [-Wdeprecated-declarations] Change-Id: I0e5f6bec596a4a78bd3bfffd16cb1eadfa301f16 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
index cfd023f439..f69327a3f1 100644
--- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
+++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
@@ -417,9 +417,6 @@ protected:
const QByteArray name = "Bar" + QByteArray::number(i) + postFix;
const char *nm = name.constData();
int tp = qRegisterMetaType<Bar>(nm);
-#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
- pthread_yield();
-#endif
QMetaType info(tp);
if (!info.isValid()) {
++failureCount;