aboutsummaryrefslogtreecommitdiff
path: root/libctf/testsuite/libctf-lookup
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2021-01-05 17:11:20 +0000
committerNick Alcock <nick.alcock@oracle.com>2021-01-05 17:11:20 +0000
commit70d3120f32281980105169dee74440146e97702e (patch)
tree0b30270fcc831e78afcfc644360576c349f3adc2 /libctf/testsuite/libctf-lookup
parentb4b6ea46807ec9c01ed4f4f18a50840358d16c28 (diff)
downloadgdb-70d3120f32281980105169dee74440146e97702e.zip
gdb-70d3120f32281980105169dee74440146e97702e.tar.gz
gdb-70d3120f32281980105169dee74440146e97702e.tar.bz2
libctf, testsuite: don't run without a suitable compiler
We never actually check to see if the compiler supports CTF, or even if a suitable compiler exists. libctf/ChangeLog 2021-01-05 Nick Alcock <nick.alcock@oracle.com> * Makefile.am (BASEDIR): New. (BFDDIR): Likewise. (check-DEJAGNU): Add development.exp to prerequisites. (development.exp): New. (CONFIG_STATUS_DEPENDENCIES): New. (EXTRA_DEJAGNU_SITE_CONFIG): Likewise. (DISTCLEANFILES): Likewise. * Makefile.in: Regenerated. * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean. * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available. * testsuite/libctf-regression/regression.exp: Likewise.
Diffstat (limited to 'libctf/testsuite/libctf-lookup')
-rw-r--r--libctf/testsuite/libctf-lookup/lookup.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libctf/testsuite/libctf-lookup/lookup.exp b/libctf/testsuite/libctf-lookup/lookup.exp
index 51ad257..84ff46c 100644
--- a/libctf/testsuite/libctf-lookup/lookup.exp
+++ b/libctf/testsuite/libctf-lookup/lookup.exp
@@ -23,6 +23,11 @@ if ![is_elf_format] {
return 0
}
+if {![check_ctf_available]} {
+ unsupported "no CTF format support in the compiler"
+ return 0
+}
+
if {[info exists env(LC_ALL)]} {
set old_lc_all $env(LC_ALL)
}