From 4cbb9129d985b328417aad802c5cffe4cde05f3e Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Sun, 23 Nov 2025 22:56:04 +0100 Subject: [PATCH] lib: test-unicode-* - Use absolute source directory for composing UCD directory Allows calling the unit tests outside the local source directory. --- src/lib/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 382bbd3b29..52331348bc 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -16,6 +16,7 @@ BUILT_SOURCES = $(srcdir)/unicode-data-tables.c \ UCD_URL = https://dovecot.org/res UCD_DIR = $(srcdir)/ucd +UCD_ABS_DIR = $(abs_srcdir)/ucd UCD_FILES = \ $(UCD_DIR)/CaseFolding.txt \ $(UCD_DIR)/CompositionExclusions.txt \ @@ -421,7 +422,7 @@ test_programs = test-lib test-cpu-limit test_lib_CPPFLAGS = \ -I$(top_srcdir)/src/lib-test \ - -DUCD_DIR=\"$(UCD_DIR)\" + -DUCD_DIR=\"$(UCD_ABS_DIR)\" test_libs = \ ../lib-test/libtest.la \ -- 2.47.3