This patch series fixes the following problem:
linux# make kselftest TARGETS=bpf O=/mnt/linux-build # selftests: bpf: test_libbpf.sh # ./test_libbpf.sh: line 23: ./test_libbpf_open: No such file or directory # test_libbpf: failed at file test_l4lb.o # selftests: test_libbpf [FAILED]
Patch 1 appends / to $(OUTPUT) in order to make it more uniform with the rest of the tree.
Patch 2 fixes the problem by prepending $(OUTPUT) to all members of $(TEST_PROGS).
v1->v2: - Append / to $(OUTPUT). - Use $(addprefix) instead of $(foreach).
v2->v3: - Split the patch in two. - Improve the commit message.
Ilya Leoshkevich (2): selftests: append / to $(OUTPUT) selftests: fix prepending $(OUTPUT) to $(TEST_PROGS)
tools/testing/selftests/Makefile | 16 ++++++++-------- tools/testing/selftests/lib.mk | 3 ++- 2 files changed, 10 insertions(+), 9 deletions(-)