diff mbox series

+ selftests-exec-add-non-regular-to-test_gen_progs.patch added to -mm tree

Message ID 20220211182612.B562CC340ED@smtp.kernel.org
State New
Headers show
Series + selftests-exec-add-non-regular-to-test_gen_progs.patch added to -mm tree | expand

Commit Message

Andrew Morton Feb. 11, 2022, 6:26 p.m. UTC
The patch titled
     Subject: selftests/exec: add non-regular to TEST_GEN_PROGS
has been added to the -mm tree.  Its filename is
     selftests-exec-add-non-regular-to-test_gen_progs.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/selftests-exec-add-non-regular-to-test_gen_progs.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/selftests-exec-add-non-regular-to-test_gen_progs.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Muhammad Usama Anjum <usama.anjum@collabora.com>
Subject: 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]

Link: https://lkml.kernel.org/r/20220210171323.1304501-1-usama.anjum@collabora.com
Fixes: 0f71241a8e32 ("selftests/exec: add file type errno tests")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
diff mbox series

Patch

--- a/tools/testing/selftests/exec/Makefile~selftests-exec-add-non-regular-to-test_gen_progs
+++ a/tools/testing/selftests/exec/Makefile
@@ -3,8 +3,8 @@  CFLAGS = -Wall
 CFLAGS += -Wno-nonnull
 CFLAGS += -D_GNU_SOURCE
 
-TEST_PROGS := binfmt_script non-regular
-TEST_GEN_PROGS := execveat load_address_4096 load_address_2097152 load_address_16777216
+TEST_PROGS := binfmt_script
+TEST_GEN_PROGS := execveat load_address_4096 load_address_2097152 load_address_16777216 non-regular
 TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir
 # Makefile is a run-time dependency, since it's accessed by the execveat test
 TEST_FILES := Makefile