summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/qlowenergycontroller/CMakeLists.txt7
-rw-r--r--tests/manual/qlowenergycontroller_peripheral/CMakeLists.txt8
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/manual/qlowenergycontroller/CMakeLists.txt b/tests/manual/qlowenergycontroller/CMakeLists.txt
index 82a0d40c..a1039a5b 100644
--- a/tests/manual/qlowenergycontroller/CMakeLists.txt
+++ b/tests/manual/qlowenergycontroller/CMakeLists.txt
@@ -39,6 +39,13 @@ qt_internal_extend_target(tst_qlowenergycontroller_device
QT_ANDROID_BLUETOOTH
)
+if(MACOS)
+ # Explicitly link against the static permission plugin because tests
+ # currently don't have finalizers run for them except for iOS.
+ # TODO: Remove this when qtbase automatically runs finalizers for tests: QTBUG-112212
+ target_link_libraries(tst_qlowenergycontroller_device PRIVATE Qt6::QDarwinBluetoothPermissionPlugin)
+endif()
+
endif()
set_target_properties(tst_qlowenergycontroller_device PROPERTIES
diff --git a/tests/manual/qlowenergycontroller_peripheral/CMakeLists.txt b/tests/manual/qlowenergycontroller_peripheral/CMakeLists.txt
index abd84bb8..377e2dd3 100644
--- a/tests/manual/qlowenergycontroller_peripheral/CMakeLists.txt
+++ b/tests/manual/qlowenergycontroller_peripheral/CMakeLists.txt
@@ -37,6 +37,14 @@ else()
QT_ANDROID_BLUETOOTH
)
+ if(MACOS)
+ # Explicitly link against the static permission plugin because tests
+ # currently don't have finalizers run for them except for iOS.
+ # TODO: Remove this when qtbase automatically runs finalizers for tests: QTBUG-112212
+ target_link_libraries(tst_qlowenergycontroller_peripheral
+ PRIVATE Qt6::QDarwinBluetoothPermissionPlugin)
+ endif()
+
endif()
set_target_properties(tst_qlowenergycontroller_peripheral PROPERTIES