[system/dolphin/release/26.08] src/tests: tests: build dolphinquerytest only when HAVE_BALOO

Méven Car <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit b83b394b6acb3426ecf141cd2ace5d7aaf3c62a0 by Méven Car.
Committed on 06/08/2026 at 09:40.
Pushed by meven into branch 'release/26.08'.

tests: build dolphinquerytest only when HAVE_BALOO

dolphinquerytest exercises the baloosearch URL parsing in DolphinQuery, which
is compiled only when HAVE_BALOO is set, that is when both KF6Baloo and
KF6BalooWidgets are found. The test was gated on KF6Baloo alone, so a build
that has Baloo core but not BalooWidgets still built and ran the test against a
parser that was compiled out, and every baloosearch case failed. Gate the test
on HAVE_BALOO so it matches the code it tests.


(cherry picked from commit 4c02caf17e4fbb4e9d97a7ac434c2147453f5c90)

Co-authored-by: Méven Car <[email protected]>

M  +1    -1    src/tests/CMakeLists.txt

https://invent.kde.org/system/dolphin/-/commit/b83b394b6acb3426ecf141cd2ace5d7aaf3c62a0

diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 94bba8e5c9..919769a67d 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -57,7 +57,7 @@ if (KF6Baloo_FOUND)
 endif()
 
 # DolphinQuery
-if (KF6Baloo_FOUND)
+if (HAVE_BALOO)
     ecm_add_test(dolphinquerytest.cpp
     TEST_NAME dolphinquerytest
     LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.