Skip to content

Commit b6f5ee4

Browse files
committed
execve: Move KUnit tests to tests/ subdirectory
Move the exec KUnit tests into a separate directory to avoid polluting the local directory namespace. Additionally update MAINTAINERS for the new files. Reviewed-by: David Gow <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Acked-by: Christian Brauner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent 21f9310 commit b6f5ee4

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

MAINTAINERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8220,7 +8220,8 @@ F: Documentation/userspace-api/ELF.rst
82208220
F: fs/*binfmt_*.c
82218221
F: fs/Kconfig.binfmt
82228222
F: fs/exec.c
8223-
F: fs/exec_test.c
8223+
F: fs/tests/binfmt_*_kunit.c
8224+
F: fs/tests/exec_kunit.c
82248225
F: include/linux/binfmts.h
82258226
F: include/linux/elf.h
82268227
F: include/uapi/linux/binfmts.h

fs/binfmt_elf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2152,5 +2152,5 @@ core_initcall(init_elf_binfmt);
21522152
module_exit(exit_elf_binfmt);
21532153

21542154
#ifdef CONFIG_BINFMT_ELF_KUNIT_TEST
2155-
#include "binfmt_elf_test.c"
2155+
#include "tests/binfmt_elf_kunit.c"
21562156
#endif

fs/exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2244,5 +2244,5 @@ fs_initcall(init_fs_exec_sysctls);
22442244
#endif /* CONFIG_SYSCTL */
22452245

22462246
#ifdef CONFIG_EXEC_KUNIT_TEST
2247-
#include "exec_test.c"
2247+
#include "tests/exec_kunit.c"
22482248
#endif
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)