mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
This adds basic tests for the new close_range() syscall. - test that no invalid flags can be passed - test that a range of file descriptors is correctly closed - test that a range of file descriptors is correctly closed if there there are already closed file descriptors in the range - test that max_fd is correctly capped to the current fdtable maximum Signed-off-by: Christian Brauner <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Jann Horn <[email protected]> Cc: David Howells <[email protected]> Cc: Dmitry V. Levin <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Florian Weimer <[email protected]> Cc: Shuah Khan <[email protected]> Cc: [email protected] Cc: [email protected]
8 lines
136 B
Makefile
8 lines
136 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
CFLAGS += -g -I../../../../usr/include/
|
|
|
|
TEST_GEN_PROGS := close_range_test
|
|
|
|
include ../lib.mk
|
|
|