[system/dolphin] 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 4c02caf17e4fbb4e9d97a7ac434c2147453f5c90 by Méven Car.
Committed on 06/08/2026 at 08:18.
Pushed by meven into branch 'master'.
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.
M +1 -1 src/tests/CMakeLists.txt
https://invent.kde.org/system/dolphin/-/commit/4c02caf17e4fbb4e9d97a7ac434c2147453f5c90
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)