summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2022-08-17 23:00:16 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-08-18 14:23:31 +0000
commitc28859a86136a9d817414cdc112d145da7269c9e (patch)
tree952a5ed1db08e57ae1e59f8651649200dc9a9d90 /tests
parent29d6c1adf0db903ee75084a09dfdab960585696b (diff)
Android: skip crahsing tst_QFile's unixPipe() and socketPair()
... on Android 12. Task-number: QTBUG-105736 Change-Id: I1a67ef34e2f3918d96bdcfdcde48c1c14fe01c2e Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> (cherry picked from commit 7c917a6dbff7ee837ad847f74be17d4cf6536371) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/io/qfile/tst_qfile.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp
index 828a90e86e..7f8010f911 100644
--- a/tests/auto/corelib/io/qfile/tst_qfile.cpp
+++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp
@@ -2642,6 +2642,10 @@ void tst_QFile::unixPipe_data()
void tst_QFile::unixPipe()
{
+#ifdef Q_OS_ANDROID
+ if (QNativeInterface::QAndroidApplication::sdkVersion() >= 31)
+ QSKIP("Crashes on Android 12 (QTBUG-105736)");
+#endif
int pipes[2] = { -1, -1 };
QVERIFY2(pipe(pipes) == 0, qPrintable(qt_error_string()));
unixPipe_helper(pipes);
@@ -2651,6 +2655,10 @@ void tst_QFile::unixPipe()
void tst_QFile::socketPair()
{
+#ifdef Q_OS_ANDROID
+ if (QNativeInterface::QAndroidApplication::sdkVersion() >= 31)
+ QSKIP("Crashes on Android 12 (QTBUG-105736)");
+#endif
int pipes[2] = { -1, -1 };
QVERIFY2(socketpair(AF_UNIX, SOCK_STREAM, 0, pipes) == 0, qPrintable(qt_error_string()));
unixPipe_helper(pipes);