binutils-gdb/libctf
Nick Alcock e2dc08c6f0 libctf: skip the testsuite from inside dejagnu
The libctf testsuite uses Tcl try/catch to trap run_output errors.  This
is only supported in reasonably recent Tcls, so we detect the lack of
try/catch and suppress the testsuite via an Automake conditional in its
absence.

But this turns out not to work: Automake produces a check-DEJAGNU target
regardless of the value of this conditional and sticks it in an
unconditionally-executed part of the makefile, so the testsuite gets
executed anyway, and fails with a nasty-looking syntax error.  We can't
disable it by taking "dejagnu" out of AUTOMAKE_OPTIONS, because if you
do that Automake stops you using RUNTEST, RUNTESTFLAGS and other
variables users would expect to work.

So move to disabling the testsuite from inside the testsuite itself,
importing the value of the former Automake conditional as a Tcl variable
and exiting very early in default.exp if it's false.

	* configure.ac (TCL_TRY): No longer an Automake conditional.
	Rename to...
	(HAVE_TCL_TRY): ... this.
	* Makefile.am: Drop TCL_TRY.
	(development.exp): Set have_tcl_try.
	* testsuite/config/default.exp: Exit if have_tcl_try is false.

	* configure: Regenerated.
	* Makefile.in: Likewise.
2023-01-12 14:40:47 +00:00
..
doc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
testsuite libctf: skip the testsuite from inside dejagnu 2023-01-12 14:40:47 +00:00
.gitignore
aclocal.m4 libctf: remove unnecessary zstd constructs 2022-12-12 10:53:39 -08:00
ChangeLog Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ChangeLog-2020
config.h.in libctf: remove unnecessary zstd constructs 2022-12-12 10:53:39 -08:00
configure libctf: skip the testsuite from inside dejagnu 2023-01-12 14:40:47 +00:00
configure.ac libctf: skip the testsuite from inside dejagnu 2023-01-12 14:40:47 +00:00
ctf-archive.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-create.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-decl.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-decls.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-dedup.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-dump.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-endian.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-error.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-hash.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-impl.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-inlines.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-intl.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-labels.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-link.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-lookup.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-open-bfd.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-open.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-qsort_r.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-serialize.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-sha1.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-sha1.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-string.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-subr.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-types.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ctf-util.c Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
libctf.ver Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
Makefile.am libctf: skip the testsuite from inside dejagnu 2023-01-12 14:40:47 +00:00
Makefile.in libctf: skip the testsuite from inside dejagnu 2023-01-12 14:40:47 +00:00
NEWS
swap.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30