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 <alexandru.croitor@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Assam Boudjelthia 2021-12-14 17:25:49 +02:00
parent 7b21a4fbba
commit 6e6e22b07d
1 changed files with 11 additions and 0 deletions

View File

@ -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) {