summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-02-23 17:14:59 -0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-16 19:04:02 +0000
commit2ff3d3651a0c418196cc42bda747faedeeb1c355 (patch)
tree1e00f34a0a4fe4f6a8505b9264f634fb239a83e0
parent7d65d82c257195d18822f7f42f2318512c3f58de (diff)
tst_qstring: properly fix the build when LC_MEASUREMENTS is not defined
Instead of proxy-testing for the OS, test for the thing you're going to use. Fixes the build on FreeBSD. Change-Id: Ibf4acec0f166495998f7fffd16d693df09871492 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit c9f6678fb44adba6b5e6675cbb32e5eb470071ec) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/shared/localechange.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shared/localechange.h b/tests/shared/localechange.h
index 9b6deaa29d..59d2feebc4 100644
--- a/tests/shared/localechange.h
+++ b/tests/shared/localechange.h
@@ -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);
-#if !defined(Q_OS_QNX) && !defined(Q_OS_INTEGRITY)
+#ifdef LC_MEASUREMENT
CASE(LC_MEASUREMENT);
#endif
#undef CASE