aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2022-01-26 11:01:54 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-31 20:45:31 +0000
commitf562e8191bb8f0936afbd07e901433e2d9c85f5b (patch)
treec063370c4d495fa0b9d5be44dbae6fcc0ac2048d
parentd48644b60d78949e6278adba36912d6458d3c514 (diff)
QNX: suppress QEXPECT_FAIL() on two tests it passes
As QNX's support for feature timezone uses the TZ backend, V4's Date.timeZoneUpdated() works, as on Linux, so tests for this method now pass. Change-Id: Ie6c318023bdf508d9f2067ca3fa9d77b78292be5 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 9c63dfd249aeeacc5c1573b6cfe4176fb9480f25) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/qml/qqmllocale/tst_qqmllocale.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp b/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp
index a318dc9ee7..7ef0275394 100644
--- a/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp
+++ b/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp
@@ -1437,7 +1437,7 @@ void tst_qqmllocale::timeZoneUpdated()
obj.reset(c.create());
QVERIFY(obj);
-#if !defined(Q_OS_LINUX) || defined(Q_OS_ANDROID)
+#if (!defined(Q_OS_LINUX) && !defined(Q_OS_QNX)) || defined(Q_OS_ANDROID)
QEXPECT_FAIL("",
"Date.timeZoneUpdated() only works on non-Android Linux with QT_CONFIG(timezone).",
Continue);
@@ -1449,7 +1449,7 @@ void tst_qqmllocale::timeZoneUpdated()
QMetaObject::invokeMethod(obj.data(), "check");
-#if !defined(Q_OS_LINUX) || defined(Q_OS_ANDROID)
+#if (!defined(Q_OS_LINUX) && !defined(Q_OS_QNX)) || defined(Q_OS_ANDROID)
QEXPECT_FAIL("",
"Date.timeZoneUpdated() only works on non-Android Linux with QT_CONFIG(timezone).",
Continue);