[PATCH 58/59] fixup! ld, testsuite: only run CTF tests when ld and GCC support CTF

Nick Alcock nick.alcock@oracle.com
Wed Jul 22 09:32:07 GMT 2020


Require ELF support for diags tests, too.  (This is possibly not
restrictive enough.)
---
 ld/testsuite/ld-ctf/ctf.exp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ld/testsuite/ld-ctf/ctf.exp b/ld/testsuite/ld-ctf/ctf.exp
index 3e44de7aaab..5d177afef0d 100644
--- a/ld/testsuite/ld-ctf/ctf.exp
+++ b/ld/testsuite/ld-ctf/ctf.exp
@@ -26,6 +26,11 @@ if [skip_ctf_tests] {
 set ctf_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
 
 foreach ctf_test $ctf_test_list {
+    if [string equal -length [string length "diag-"] "diag-" [file tail $ctf_test]] {
+	if ![is_elf_format] {
+	    continue
+	}
+    }
     verbose [file rootname $ctf_test]
     run_dump_test [file rootname $ctf_test] { { cc "-gt -fPIC" } }
 }
-- 
2.27.0.247.g3dff7de930


More information about the Binutils mailing list