Skip to content

Commit a7e793a

Browse files
Muhammad Usama Anjumshuahkh
authored andcommitted
selftests/exec: Add non-regular to TEST_GEN_PROGS
non-regular file needs to be compiled and then copied to the output directory. Remove it from TEST_PROGS and add it to TEST_GEN_PROGS. This removes error thrown by rsync when non-regular object isn't found: rsync: [sender] link_stat "/linux/tools/testing/selftests/exec/non-regular" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3] Fixes: 0f71241 ("selftests/exec: add file type errno tests") Reported-by: "kernelci.org bot" <bot@kernelci.org> Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Reviewed-by: Shuah Khan <skhan@linuxfoundation.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 183f80f commit a7e793a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/exec/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ CFLAGS = -Wall
33
CFLAGS += -Wno-nonnull
44
CFLAGS += -D_GNU_SOURCE
55

6-
TEST_PROGS := binfmt_script non-regular
7-
TEST_GEN_PROGS := execveat load_address_4096 load_address_2097152 load_address_16777216
6+
TEST_PROGS := binfmt_script
7+
TEST_GEN_PROGS := execveat load_address_4096 load_address_2097152 load_address_16777216 non-regular
88
TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir
99
# Makefile is a run-time dependency, since it's accessed by the execveat test
1010
TEST_FILES := Makefile

0 commit comments

Comments
 (0)