From 6e6e22b07d6c9998fdd1d04a2b8d55e206b5bbad Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Tue, 14 Dec 2021 17:25:49 +0200 Subject: [PATCH] Skip test cases execute the app's main shared lib on Android Because on Android the project main target is compiled into a shared library. Pick-to: 6.2 6.3 Task-number: QTBUG-99214 Task-number: QTBUG-97056 Change-Id: Ia0b5d84f6a07964ce7e1802c42a9b35675248e51 Reviewed-by: Alexandru Croitor Reviewed-by: Fabian Kosmale --- .../qml/qqmlxmlhttprequest/tst_qqmlxmlhttprequest.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/auto/qml/qqmlxmlhttprequest/tst_qqmlxmlhttprequest.cpp b/tests/auto/qml/qqmlxmlhttprequest/tst_qqmlxmlhttprequest.cpp index 58baa363f8..3353d8d5e1 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/tst_qqmlxmlhttprequest.cpp +++ b/tests/auto/qml/qqmlxmlhttprequest/tst_qqmlxmlhttprequest.cpp @@ -1137,6 +1137,9 @@ void tst_qqmlxmlhttprequest::sendFileRequest() #if QT_CONFIG(process) void tst_qqmlxmlhttprequest::sendFileRequestNotSet() { +#ifdef Q_OS_ANDROID + QSKIP("Trying to run the main app .so lib crashes on Android (QTBUG-99214)"); +#endif if (qEnvironmentVariableIsSet("TEST_CUSTOM_PERMISSIONS")) { // Test with no settings, neither reading nor writing should work doFileRequest([](QObject *object, QTemporaryFile &writeFile) { @@ -1191,6 +1194,10 @@ void tst_qqmlxmlhttprequest::sendFileRequestNotSet() { #if QT_CONFIG(process) void tst_qqmlxmlhttprequest::sendFileRequestNoWrite() { +#ifdef Q_OS_ANDROID + QSKIP("Trying to run the main app .so lib crashes on Android (QTBUG-99214)"); +#endif + if (qEnvironmentVariableIsSet("TEST_CUSTOM_PERMISSIONS")) { // Test with no writing enabled doFileRequest([](QObject* object, QTemporaryFile &writeFile) { @@ -1220,6 +1227,10 @@ void tst_qqmlxmlhttprequest::sendFileRequestNoWrite() { #if QT_CONFIG(process) void tst_qqmlxmlhttprequest::sendFileRequestNoRead() { +#ifdef Q_OS_ANDROID + QSKIP("Trying to run the main app .so lib crashes on Android (QTBUG-99214)"); +#endif + if (qEnvironmentVariableIsSet("TEST_CUSTOM_PERMISSIONS")) { // Test with no reading enabled doFileRequest([](QObject* object, QTemporaryFile &writeFile) {