summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMikko Hallamaa <[email protected]>2025-08-19 15:08:44 +0200
committerMikko Hallamaa <[email protected]>2025-08-20 14:48:13 +0200
commit18cebbb3c1bae72325d922df83a963b27592e98a (patch)
tree7b7e45098825d75bc9c7a175565a3e0df774261f /tests
parentdeed61be38520a7e171a1ae051d366ae891e8550 (diff)
tst_qaudiosink: Skip callback API tests if nothing meaningful is runHEADdev
In tst_qaudiosink, callback API tests passed quietly when when ifdef'd test code wasn't reached. This commit changes that so that they are skipped instead. Pick-to: 6.10 6.9 Change-Id: Ia330d277389dc02dbba1c7cb6709336519ddeb96 Reviewed-by: Artem Dyomin <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qaudiosink/tst_qaudiosink.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/integration/qaudiosink/tst_qaudiosink.cpp b/tests/auto/integration/qaudiosink/tst_qaudiosink.cpp
index 3c9a5998b..ebc5f6b80 100644
--- a/tests/auto/integration/qaudiosink/tst_qaudiosink.cpp
+++ b/tests/auto/integration/qaudiosink/tst_qaudiosink.cpp
@@ -1280,6 +1280,8 @@ void tst_QAudioSink::callbackAPI()
bool callbackExecuted = sync.try_acquire_for(1s);
QVERIFY(callbackExecuted);
+#else
+ QSKIP("Threading not configured");
#endif
}
@@ -1323,6 +1325,8 @@ void tst_QAudioSink::callbackAPI_startWithMoveOnlyFunctor()
bool callbackExecuted = sync.try_acquire_for(1s);
QVERIFY(callbackExecuted);
+#else
+ QSKIP("Threading not configured or move-only functions not available");
#endif
}