summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel/qobject/tst_qobject.cpp
diff options
context:
space:
mode:
authorTatiana Borisova <tatiana.borisova@qt.io>2021-09-06 10:11:06 +0300
committerTatiana Borisova <tatiana.borisova@qt.io>2021-09-20 17:29:04 +0300
commit766904bf5b776a6437ca974efbeb9e99ef13e084 (patch)
treedd3b536372c65481b9fa42634d713350d77ecfca /tests/auto/corelib/kernel/qobject/tst_qobject.cpp
parente6892f38a084e514bf9c501f3045b297f6260714 (diff)
Compile autotests for Integrity
- process environment/DNS are OFF for INTEGRITY Task-number: QTBUG-96176 Pick-to: 6.2 Change-Id: I189a97f88c96a428586c31a66b8d250e04482900 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel/qobject/tst_qobject.cpp')
-rw-r--r--tests/auto/corelib/kernel/qobject/tst_qobject.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/auto/corelib/kernel/qobject/tst_qobject.cpp b/tests/auto/corelib/kernel/qobject/tst_qobject.cpp
index da62d73824..a06bb5caab 100644
--- a/tests/auto/corelib/kernel/qobject/tst_qobject.cpp
+++ b/tests/auto/corelib/kernel/qobject/tst_qobject.cpp
@@ -7225,11 +7225,14 @@ void tst_QObject::checkArgumentsForNarrowing()
// integral to integral with different signedness. smaller ones tested above
NARROWS(signed char, unsigned char);
+
+ // Issue is reported to Green Hills, 2021-09-14.
+#if !defined(Q_CC_GHS)
NARROWS(signed char, unsigned short);
NARROWS(signed char, unsigned int);
NARROWS(signed char, unsigned long);
NARROWS(signed char, unsigned long long);
-
+#endif // Q_CC_GHS
NARROWS(unsigned char, signed char);
FITS(unsigned char, short);
FITS(unsigned char, int);
@@ -7237,19 +7240,23 @@ void tst_QObject::checkArgumentsForNarrowing()
FITS(unsigned char, long long);
NARROWS(short, unsigned short);
+#if !defined(Q_CC_GHS)
NARROWS(short, unsigned int);
NARROWS(short, unsigned long);
- NARROWS(short, unsigned long long);
+ NARROWS(short, unsigned long long);
+#endif // Q_CC_GHS
NARROWS(unsigned short, short);
+
FITS(unsigned short, int);
FITS(unsigned short, long);
FITS(unsigned short, long long);
NARROWS(int, unsigned int);
+#if !defined(Q_CC_GHS)
NARROWS(int, unsigned long);
NARROWS(int, unsigned long long);
-
+#endif // Q_CC_GHS
NARROWS(unsigned int, int);
NARROWS_IF(unsigned int, long, (sizeof(int) >= sizeof(long)));
FITS(unsigned int, long long);
@@ -7307,17 +7314,19 @@ void tst_QObject::checkArgumentsForNarrowing()
/* implicit */ operator double() const { return 42.0; }
};
+#if !defined(Q_CC_GHS)
NARROWS(ConvertingToDouble, char);
NARROWS(ConvertingToDouble, short);
NARROWS(ConvertingToDouble, int);
NARROWS(ConvertingToDouble, long);
NARROWS(ConvertingToDouble, long long);
NARROWS(ConvertingToDouble, float);
+#endif // Q_CC_GHS
FITS(ConvertingToDouble, double);
FITS(ConvertingToDouble, long double);
- // GCC and clang don't implement this properly yet:
+ // GCC, GHS and clang don't implement this properly yet:
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99625
// https://bugs.llvm.org/show_bug.cgi?id=49676
#if defined(Q_CC_MSVC) // at least since VS2017