selftests/exec: Add non-regular to TEST_GEN_PROGS
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Thu, 10 Feb 2022 17:13:23 +0000 (22:13 +0500)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 11 Feb 2022 17:18:13 +0000 (10:18 -0700)
commita7e793a867ae312cecdeb6f06cceff98263e75dd
treeb153d365b0b8af2fcb4280f7bbb3ae86e4f6a821
parent183f80fd72db42c9cc483aa7a5e8e881355d0b03
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: 0f71241a8e32 ("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>
tools/testing/selftests/exec/Makefile