Skip to contentSkip to conversation

selftests/exec: Fix build for non-regular

PATCH New Joerg Vehlow 1 participant 1 message Nov 24, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/exec: Fix build for non-regular

From: Joerg Vehlow <[email protected]>

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")
---
 tools/testing/selftests/exec/.gitignore | 1 +
 tools/testing/selftests/exec/Makefile   | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
tools/testing/selftests/exec/.gitignore +1 -0
index 9e2f00343f15..9141262d14c1 100644
@@ -12,3 +12,4 @@ execveat.denatured
 xxxxxxxx*
 pipe
 S_I*.test
+non-regular
tools/testing/selftests/exec/Makefile +2 -2
index dd61118df66e..46a12d6bd06f 100644
@@ -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
Signature · 1 line
2.25.1