aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2021-11-29 13:52:40 +0000
committerAndrew Burgess <aburgess@redhat.com>2021-11-30 13:05:57 +0000
commitae9aa73767ca46f34ee6ea915bdf13b77d058d4d (patch)
tree877c64847db60e0e365500e558b722fc0eaa3deb /ld
parent1527fe5f584c71dbf006c6646fe2ff729d7b2b48 (diff)
downloadgdb-ae9aa73767ca46f34ee6ea915bdf13b77d058d4d.zip
gdb-ae9aa73767ca46f34ee6ea915bdf13b77d058d4d.tar.gz
gdb-ae9aa73767ca46f34ee6ea915bdf13b77d058d4d.tar.bz2
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.
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions