summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-08-21 23:56:17 +0300
committerAhmad Samir <a.samirh78@gmail.com>2023-08-22 14:53:07 +0300
commit5fd77a994fc64bc3b820ccb3921c835228bcfa39 (patch)
tree985cbfa4022bb3f6c92ac50e8c195d5a95aaf492 /tests
parent6c0d6da3848b912ea222f4e9f5eb67da67cac12c (diff)
Mark the whole repo with QT_NO_CONTEXTLESS_CONNECT
By adding it to the default build flags via .cmake.conf. This amends commit 5ad5773f2388bfa74b16fd9108f3f00cbed06b43. Task-number: QTBUG-116296 Change-Id: Ifca206eb4831e22db1205bba3e295a29d3c83aec Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/abstractoauth/tst_abstractoauth.cpp2
-rw-r--r--tests/auto/oauth1/CMakeLists.txt2
-rw-r--r--tests/auto/oauth1signature/CMakeLists.txt2
-rw-r--r--tests/auto/oauth2/CMakeLists.txt2
-rw-r--r--tests/auto/oauthhttpserverreplyhandler/CMakeLists.txt2
5 files changed, 1 insertions, 9 deletions
diff --git a/tests/auto/abstractoauth/tst_abstractoauth.cpp b/tests/auto/abstractoauth/tst_abstractoauth.cpp
index 36d04f8..28b2005 100644
--- a/tests/auto/abstractoauth/tst_abstractoauth.cpp
+++ b/tests/auto/abstractoauth/tst_abstractoauth.cpp
@@ -51,7 +51,7 @@ void tst_AbstractOAuth::authorizationUrlSignal()
const QUrl defaultValue = obj.authorizationUrl();
QVERIFY(expectedValue != defaultValue);
bool emitted = false;
- connect(&obj, &QAbstractOAuth::authorizationUrlChanged, [&](const QUrl &value) {
+ connect(&obj, &QAbstractOAuth::authorizationUrlChanged, this, [&](const QUrl &value) {
QCOMPARE(expectedValue, value);
emitted = true;
});
diff --git a/tests/auto/oauth1/CMakeLists.txt b/tests/auto/oauth1/CMakeLists.txt
index d3dc85b..064ff63 100644
--- a/tests/auto/oauth1/CMakeLists.txt
+++ b/tests/auto/oauth1/CMakeLists.txt
@@ -18,8 +18,6 @@ qt_internal_add_test(tst_oauth1
Qt::Network
Qt::NetworkAuth
Qt::NetworkAuthPrivate
- DEFINES
- QT_NO_CONTEXTLESS_CONNECT
)
#### Keys ignored in scope 1:.:.:oauth1.pro:<TRUE>:
diff --git a/tests/auto/oauth1signature/CMakeLists.txt b/tests/auto/oauth1signature/CMakeLists.txt
index 16029d6..f3f74e3 100644
--- a/tests/auto/oauth1signature/CMakeLists.txt
+++ b/tests/auto/oauth1signature/CMakeLists.txt
@@ -13,8 +13,6 @@ qt_internal_add_test(tst_oauth1signature
LIBRARIES
Qt::CorePrivate
Qt::NetworkAuth
- DEFINES
- QT_NO_CONTEXTLESS_CONNECT
)
#### Keys ignored in scope 1:.:.:oauth1signature.pro:<TRUE>:
diff --git a/tests/auto/oauth2/CMakeLists.txt b/tests/auto/oauth2/CMakeLists.txt
index db9e5ef..b06a5ab 100644
--- a/tests/auto/oauth2/CMakeLists.txt
+++ b/tests/auto/oauth2/CMakeLists.txt
@@ -22,8 +22,6 @@ qt_internal_add_test(tst_oauth2
Qt::NetworkAuth
Qt::NetworkAuthPrivate
TESTDATA ${test_data}
- DEFINES
- QT_NO_CONTEXTLESS_CONNECT
)
#### Keys ignored in scope 1:.:.:oauth2.pro:<TRUE>:
diff --git a/tests/auto/oauthhttpserverreplyhandler/CMakeLists.txt b/tests/auto/oauthhttpserverreplyhandler/CMakeLists.txt
index 1b02a91..6a67c78 100644
--- a/tests/auto/oauthhttpserverreplyhandler/CMakeLists.txt
+++ b/tests/auto/oauthhttpserverreplyhandler/CMakeLists.txt
@@ -14,8 +14,6 @@ qt_internal_add_test(tst_oauthhttpserverreplyhandler
Qt::CorePrivate
Qt::Network
Qt::NetworkAuth
- DEFINES
- QT_NO_CONTEXTLESS_CONNECT
)
#### Keys ignored in scope 1:.:.:oauthhttpserverreplyhandler.pro:<TRUE>: