summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui
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/gui
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/gui')
-rw-r--r--tests/auto/gui/image/qicon/tst_qicon.cpp3
-rw-r--r--tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp4
-rw-r--r--tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp3
-rw-r--r--tests/auto/gui/painting/qpainter/tst_qpainter.cpp2
-rw-r--r--tests/auto/gui/text/qfont/tst_qfont.cpp2
-rw-r--r--tests/auto/gui/util/qundogroup/tst_qundogroup.cpp2
-rw-r--r--tests/auto/gui/util/qundostack/tst_qundostack.cpp2
7 files changed, 15 insertions, 3 deletions
diff --git a/tests/auto/gui/image/qicon/tst_qicon.cpp b/tests/auto/gui/image/qicon/tst_qicon.cpp
index 7bd7fe3feb..3363f86809 100644
--- a/tests/auto/gui/image/qicon/tst_qicon.cpp
+++ b/tests/auto/gui/image/qicon/tst_qicon.cpp
@@ -31,8 +31,9 @@
#include <QBuffer>
#include <QStandardPaths>
#include <QPainter>
+#if QT_CONFIG(process)
#include <QProcess>
-
+#endif
#include <qicon.h>
#include <qiconengine.h>
diff --git a/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp b/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp
index 924174e358..6ce8060306 100644
--- a/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp
+++ b/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp
@@ -43,6 +43,10 @@
# include <unistd.h>
#endif
+#ifdef Q_OS_INTEGRITY
+#include "qplatformdefs.h"
+#endif
+
#include <algorithm>
typedef QMap<QString, QString> QStringMap;
diff --git a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp
index 622cc61ed0..42af0dea2c 100644
--- a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp
+++ b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp
@@ -30,8 +30,9 @@
#include <QTest>
#include <QMimeData>
#include <QSignalSpy>
+#if QT_CONFIG(process)
#include <QProcess>
-
+#endif
#include <QtCore/QDebug>
#include <QtCore/QFileInfo>
#include <QtCore/QDir>
diff --git a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
index f0cc06a2e4..45490ef815 100644
--- a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
+++ b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
@@ -2846,7 +2846,7 @@ void tst_QPainter::monoImages()
}
}
-#if !defined(Q_OS_AIX) && !defined(Q_CC_MSVC) && !defined(Q_OS_SOLARIS) && !defined(__UCLIBC__)
+#if !defined(Q_OS_AIX) && !defined(Q_CC_MSVC) && !defined(Q_OS_SOLARIS) && !defined(__UCLIBC__) && !defined(Q_OS_INTEGRITY)
#include <fenv.h>
static const QString fpeExceptionString(int exception)
diff --git a/tests/auto/gui/text/qfont/tst_qfont.cpp b/tests/auto/gui/text/qfont/tst_qfont.cpp
index fb71ff7b38..6bae45e5c3 100644
--- a/tests/auto/gui/text/qfont/tst_qfont.cpp
+++ b/tests/auto/gui/text/qfont/tst_qfont.cpp
@@ -29,7 +29,9 @@
#include <QTest>
#include <QBuffer>
#include <QtEndian>
+#if QT_CONFIG(process)
#include <QProcess>
+#endif
#include <qfont.h>
#include <private/qfont_p.h>
diff --git a/tests/auto/gui/util/qundogroup/tst_qundogroup.cpp b/tests/auto/gui/util/qundogroup/tst_qundogroup.cpp
index 7c45a60c72..c609ab4ffd 100644
--- a/tests/auto/gui/util/qundogroup/tst_qundogroup.cpp
+++ b/tests/auto/gui/util/qundogroup/tst_qundogroup.cpp
@@ -30,7 +30,9 @@
#include <QUndoStack>
#include <QAction>
#include <QSignalSpy>
+#if QT_CONFIG(process)
#include <QProcess>
+#endif
#include <QLibraryInfo>
#include <QTranslator>
diff --git a/tests/auto/gui/util/qundostack/tst_qundostack.cpp b/tests/auto/gui/util/qundostack/tst_qundostack.cpp
index 662dbe3f36..6707c12d80 100644
--- a/tests/auto/gui/util/qundostack/tst_qundostack.cpp
+++ b/tests/auto/gui/util/qundostack/tst_qundostack.cpp
@@ -31,7 +31,9 @@
#include <QAction>
#include <QUndoStack>
#include <QSignalSpy>
+#if QT_CONFIG(process)
#include <QProcess>
+#endif
#include <QTranslator>
#include <QLibraryInfo>