binutils-gdb/gdb/testsuite/lib
Andrew Burgess ae9aa73767 gdb/testsuite: check the python module is available before using it
The gdb.python/py-inferior-leak.exp test makes use of the tracemalloc
module.  When running the Python tests with a GDB built against Python
2 I ran into a test failure due to the tracemalloc module not being
available.

This commit adds a new helper function to lib/gdb-python.exp that
checks if a named module is available.  Using this we can then skip
the py-inferior-leak.exp test when the tracemalloc module is not
available.
2021-11-30 13:05:57 +00:00
..
ada.exp
append_gdb_boards_dir.exp
attributes.h
build-piece.exp
cache.exp
check-test-names.exp
cl_util.c
cl_util.h
compile-support.exp
compiler.c
compiler.cc
completion-support.exp
cp-support.exp
d-support.exp
data-structures.exp
dtrace.exp
dwarf.exp [gdb/testsuite] Fix typo in proc lines 2021-11-29 09:51:10 +01:00
fortran.exp
future.exp
gdb-guile.exp
gdb-python.exp gdb/testsuite: check the python module is available before using it 2021-11-30 13:05:57 +00:00
gdb-utils.exp
gdb.exp
gdbserver-support.exp
gen-perf-test.exp
gnat_debug_info_test.adb
go.exp
jit-elf-helpers.exp
memory.exp
mi-support.exp
my-syscalls.h
my-syscalls.S
objc.exp
opencl_hostapp.c
opencl_kernel.cl
opencl.exp
pascal.exp
pdtrace.in
perftest.exp
prelink-support.exp
prompt.exp
range-stepping-support.exp
read1.c
rust-support.exp
selftest-support.exp
set_unbuffered_mode.c
sym-info-cmds.exp
trace-support.exp
tuiterm.exp
unbuffer_output.c
valgrind.exp