Skip to contentSkip to conversation

selftests/exec: Fix build

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

From: Joerg Vehlow <[email protected]>

This fixes
make: *** No rule to make target 'tools/testing/selftests/exec/pipe', needed by 'all'. Stop.

Targets defined in TEST_DEN_FILES must exist as targets in the makefile, but pipe is only created by the test at runtime, so it should be cleaned only.

Fixes 61016db15b8e ("selftests/exec: Verify execve of non-regular files fail")
---
 tools/testing/selftests/exec/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/testing/selftests/exec/Makefile +2 -2
index dd61118df66e..ac8acca7a942 100644
@@ -5,14 +5,14 @@ CFLAGS += -D_GNU_SOURCE
 
 TEST_PROGS := binfmt_script non-regular
 TEST_GEN_PROGS := execveat load_address_4096 load_address_2097152 load_address_16777216
-TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir pipe
+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
 
 TEST_GEN_PROGS += recursion-depth
 
 EXTRA_CLEAN := $(OUTPUT)/subdir.moved $(OUTPUT)/execveat.moved $(OUTPUT)/xxxxx*	\
-	       $(OUTPUT)/S_I*.test
+	       $(OUTPUT)/S_I*.test $(OUTPUT)/pipe
 
 include ../lib.mk
 
Signature · 1 line
2.25.1