From 8a9dbadece7b59f26ba2275502ea1f8b5239b076 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Sat, 3 Jan 2026 15:40:12 +0000 Subject: [PATCH] test/libcriu: fix include paths for CRIU headers The libcriu tests include CRIU headers that are split across "criu/include" and "criu/criu/include". Using only "criu/criu/include" causes CRIU's "linux/openat2.h" to fail to find "common/config.h": gcc -c test_join_ns.c -iquote ../../../criu -iquote ../../../criu/include -I../../../lib/c/ -I../../../images/ -o test_join_ns.o -Werror In file included from /usr/include/bits/fcntl-linux.h:468, from /usr/include/bits/fcntl.h:61, from /usr/include/fcntl.h:35, from test_join_ns.c:3: ../../../criu/include/linux/openat2.h:6:10: fatal error: common/config.h: No such file or directory 6 | #include "common/config.h" | ^~~~~~~~~~~~~~~~~ compilation terminated. Fixes: f8125b8bef7bf5a7bbaea5e6e1d29578c45bf53d ("Couple of fixes to build and run libcriu tests") Signed-off-by: Radostin Stoyanov --- test/others/libcriu/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/others/libcriu/Makefile b/test/others/libcriu/Makefile index af4a3ecc6..a6ff0b50b 100644 --- a/test/others/libcriu/Makefile +++ b/test/others/libcriu/Makefile @@ -26,7 +26,7 @@ endef $(foreach t, $(TESTS), $(eval $(call genb, $(t)))) %.o: %.c - gcc -c $^ -iquote ../../../criu/include -I../../../lib/c/ -I../../../images/ -o $@ -Werror + gcc -c $^ -iquote../../../criu/include -I../../../include -I../../../lib/c/ -I../../../images/ -o $@ -Werror clean: libcriu_clean rm -rf $(TESTS) $(TESTS:%=%.o) lib.o