summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTatiana Borisova <tatiana.borisova@qt.io>2021-09-21 15:47:01 +0300
committerTatiana Borisova <tatiana.borisova@qt.io>2021-09-21 17:56:54 +0000
commitdbab92688319fdb33f5177adb2572fc954ddebe0 (patch)
tree64b60fe990075022e082210bdd9a622cf2931ea6 /tests
parent01d94760d8d34e51e1442682fc151747943c7e25 (diff)
locale: INTEGRITY does not define LC_MEASUREMENTS
- It does however use the Unix backend for system locale, so don't entirely skip setting environment variable, only leave out LC_MEASUREMENTS. Pick-to: 6.2 Change-Id: If292f1077851b29da2a21af7c46f4db9c0e4ed19 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/shared/localechange.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shared/localechange.h b/tests/shared/localechange.h
index b363af1175..9b6deaa29d 100644
--- a/tests/shared/localechange.h
+++ b/tests/shared/localechange.h
@@ -52,7 +52,7 @@ namespace QTestLocaleChange {
const int m_category;
const QByteArray m_prior;
const bool m_didSet;
-#if !defined(QT_NO_SYSTEMLOCALE) && defined(Q_OS_UNIX) && !defined(Q_OS_INTEGRITY) \
+#if !defined(QT_NO_SYSTEMLOCALE) && defined(Q_OS_UNIX) \
&& (!defined(Q_OS_DARWIN) || defined(Q_OS_NACL))
#define TRANSIENT_ENV
// Unix system locale consults environment variables, so we need to set
@@ -65,7 +65,7 @@ namespace QTestLocaleChange {
#define CASE(cat) case cat: return #cat
CASE(LC_ALL); CASE(LC_NUMERIC); CASE(LC_TIME); CASE(LC_MONETARY);
CASE(LC_MESSAGES); CASE(LC_COLLATE);
-#ifndef Q_OS_QNX
+#if !defined(Q_OS_QNX) && !defined(Q_OS_INTEGRITY)
CASE(LC_MEASUREMENT);
#endif
#undef CASE