mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-03 09:38:00 +02:00
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 Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1384>
This commit is contained in:
parent
08a8e0cc38
commit
1d4ce84746
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue