From 7c4e7a40d3b794098c2bc5bd1100594057611b5d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 17 Dec 2025 11:01:12 +1000 Subject: [PATCH] test: only use the quirks srcdir if we have a builddir Same approach as we already do for other constants though note the builddir_lookup() hack only works for release builds. Closes #1230 --- test/litest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index fef36faa..c251d32a 100644 --- a/test/litest.c +++ b/test/litest.c @@ -2003,7 +2003,10 @@ litest_setup_quirks(struct list *created_files_list, enum quirks_setup_mode mode switch (mode) { case QUIRKS_SETUP_USE_SRCDIR: - dirname = LIBINPUT_QUIRKS_SRCDIR; + if (builddir_lookup(NULL)) + dirname = LIBINPUT_QUIRKS_SRCDIR; + else + dirname = LIBINPUT_QUIRKS_DIR; break; case QUIRKS_SETUP_ONLY_DEVICE: dirname = LIBINPUT_QUIRKS_DIR;