This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix run-one-test so that it runs elf tests
- From: Arjun Shankar <arjun dot is at lostca dot se>
- To: libc-alpha at sourceware dot org
- Date: Tue, 5 Nov 2019 16:19:52 +0000
- Subject: [PATCH] Fix run-one-test so that it runs elf tests
From: Arjun Shankar <arjun@redhat.com>
The `test' make target passes a trailing slash in the subdir argument. This does not
play well with elf/rtld-Rules which looks for `elf' without any trailing slash and
therefore doesn't find a match when running an elf test individually. This commit
removes the trailing slash from the invocation.
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 335155ce3c..fae71aa287 100644
--- a/Makefile
+++ b/Makefile
@@ -691,6 +691,6 @@ iconvdata/% localedata/% po/%: FORCE
.PHONY: test
test :
@-rm -f $(objpfx)$t.out
- $(MAKE) subdir=$(dir $t) -C $(dir $t) ..=../ $(objpfx)$t.out
+ $(MAKE) subdir=$(patsubst %/,%,$(dir $t)) -C $(dir $t) ..=../ $(objpfx)$t.out
@cat $(objpfx)$t.test-result
@cat $(objpfx)$t.out