diff options
Diffstat (limited to 'ld/testsuite/ld-ctf/ctf.exp')
-rw-r--r-- | ld/testsuite/ld-ctf/ctf.exp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ctf/ctf.exp b/ld/testsuite/ld-ctf/ctf.exp index 9a248f9..5d177af 100644 --- a/ld/testsuite/ld-ctf/ctf.exp +++ b/ld/testsuite/ld-ctf/ctf.exp @@ -18,9 +18,19 @@ # MA 02110-1301, USA. # +if [skip_ctf_tests] { + unsupported "no CTF format support in the compiler, or CTF disabled" + return 0 +} + 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" } } } |