diff mbox series

selftests/exec: Fix build for non-regular

Message ID 20211124124629.1506208-1-lkml@jv-coder.de (mailing list archive)
State New
Headers show
Series selftests/exec: Fix build for non-regular | expand

Commit Message

Joerg Vehlow Nov. 24, 2021, 12:46 p.m. UTC
From: Joerg Vehlow <joerg.vehlow@aox-tech.de>

The non-regular binary was not built at all and make install failed with
rsync: link_stat "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(1207) [sender=3.1.3]

TEST_PROGS should only be used for shell scripts, not for binaries

Fixes: 0f71241a8e32 ("selftests/exec: add file type errno tests")
Signed-off-by: Joerg Vehlow <joerg.vehlow@aox-tech.de>
---
 tools/testing/selftests/exec/.gitignore | 1 +
 tools/testing/selftests/exec/Makefile   | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tools/testing/selftests/exec/.gitignore b/tools/testing/selftests/exec/.gitignore
index 9e2f00343f15..9141262d14c1 100644
--- a/tools/testing/selftests/exec/.gitignore
+++ b/tools/testing/selftests/exec/.gitignore
@@ -12,3 +12,4 @@  execveat.denatured
 xxxxxxxx*
 pipe
 S_I*.test
+non-regular
diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile
index dd61118df66e..46a12d6bd06f 100644
--- a/tools/testing/selftests/exec/Makefile
+++ b/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 pipe
 # Makefile is a run-time dependency, since it's accessed by the execveat test
 TEST_FILES := Makefile