mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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: f8125b8bef
("Couple of fixes to build and run libcriu tests")
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
bca291477d
commit
8a9dbadece
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue