]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - elf/Makefile
elf: Add ld.so test with non-existing program name
[thirdparty/glibc.git] / elf / Makefile
index 4f1903391ad04b4966ead7ce23a85653d01c2541..6dad11bcfb2bbc2514840fa7f1ae9157c018cc49 100644 (file)
@@ -621,6 +621,13 @@ $(objpfx)tst-valgrind-smoke.out: tst-valgrind-smoke.sh $(objpfx)ld.so $(objpfx)v
                '$(run-program-env)' '$(rpath-link)' $(objpfx)valgrind-test \
                '$(valgrind-suppressions-tst-valgrind-smoke)' > $@; $(evaluate-test)
 
+ifeq ($(run-built-tests),yes)
+tests-special += $(objpfx)tst-rtld-does-not-exist.out
+endif
+$(objpfx)tst-rtld-does-not-exist.out: tst-rtld-does-not-exist.sh $(objpfx)ld.so
+       $(SHELL) $< $(objpfx)ld.so > $@; \
+       $(evaluate-test)
+
 tests += $(tests-execstack-$(have-z-execstack))
 ifeq ($(run-built-tests),yes)
 tests-special += \