Skip to content

Commit e614622

Browse files
mtth-bfftl0kod
authored andcommitted
selftests/landlock: Fix makefile header list
Make all headers part of make's dependencies computations. Otherwise, updating audit.h, common.h, scoped_base_variants.h, scoped_common.h, scoped_multiple_domain_variants.h, or wrappers.h, re-running make and running selftests could lead to testing stale headers. Fixes: 6a500b2 ("selftests/landlock: Add tests for audit flags and domain IDs") Fixes: fefcf0f ("selftests/landlock: Test abstract UNIX socket scoping") Fixes: 5147779 ("selftests/landlock: Add wrappers.h") Signed-off-by: Matthieu Buffet <matthieu@buffet.re> Link: https://lore.kernel.org/r/20251027011440.1838514-1-matthieu@buffet.re Signed-off-by: Mickaël Salaün <mic@digikod.net>
1 parent 335ef80 commit e614622

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/testing/selftests/landlock

tools/testing/selftests/landlock/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
CFLAGS += -Wall -O2 $(KHDR_INCLUDES)
66

7-
LOCAL_HDRS += common.h
7+
LOCAL_HDRS += $(wildcard *.h)
88

99
src_test := $(wildcard *_test.c)
1010

0 commit comments

Comments
 (0)