binutils-gdb/gdb/testsuite/gdb.server
Tom de Vries 5ad2694b1e [gdb/testsuite] Require python in gdb.server/server-kill-python.exp
I came across this when running test-case gdb.server/server-kill-python.exp
with a gdb configured without python:
...
builtin_spawn gdb -nw -nx -data-directory data-directory -iex set height 0 \
  -iex set width 0 -quiet -iex set height 0 -iex set width 0 \
  -ex source outputs/gdb.server/server-kill-python/file1.py^M
FAIL: gdb.server/server-kill-python.exp: ensure inferior is running
Executing on target: kill -9 28535    (timeout = 300)
builtin_spawn -ignore SIGHUP kill -9 28535^M
file1.py:1: Error in sourced command file:^M
Undefined command: "import".  Try "help".^M
...

Fix this by testing for python support in the test-case.

Tested on aarch64-linux (with python support disabled) and x86_64-linux (with
python support enabled).
2021-10-28 14:18:15 +02:00
..
abspath.exp
attach-flag.c gdb: enable target_async around stop_all_threads call in process_initial_stop_replies 2021-09-28 20:18:30 -04:00
attach-flag.exp gdb: enable target_async around stop_all_threads call in process_initial_stop_replies 2021-09-28 20:18:30 -04:00
bkpt-other-inferior.exp
connect-stopped-target.c
connect-stopped-target.exp [gdb/testsuite] Minimize gdb restarts 2021-09-25 09:28:57 +02:00
connect-with-no-symbol-file.c
connect-with-no-symbol-file.exp
connect-without-multi-process.c
connect-without-multi-process.exp
exit-multiple-threads.c
exit-multiple-threads.exp [gdb/testsuite] Minimize gdb restarts 2021-09-25 09:28:57 +02:00
ext-attach.c
ext-attach.exp
ext-restart.exp
ext-run.exp
ext-wrapper.exp
extended-remote-restart.c
extended-remote-restart.exp gdb/testsuite: make runto_main not pass no-message to runto 2021-09-30 15:27:39 -04:00
file-transfer.exp
multi-ui-errors.c
multi-ui-errors.exp
no-thread-db.c
no-thread-db.exp
non-existing-program.exp
normal.c
reconnect-ctrl-c.c
reconnect-ctrl-c.exp
run-without-local-binary.exp [gdb/testsuite] Minimize gdb restarts 2021-09-25 09:28:57 +02:00
server-connect.exp
server-exec-info.exp
server-kill-python.exp [gdb/testsuite] Require python in gdb.server/server-kill-python.exp 2021-10-28 14:18:15 +02:00
server-kill.c
server-kill.exp [gdb/testsuite] Fix gdb.server/server-kill.exp with -m32 2021-09-18 17:19:06 +02:00
server-mon.exp
server-run.exp
server.c
solib-list-lib.c
solib-list-main.c
solib-list.exp
stop-reply-no-thread-multi.c
stop-reply-no-thread-multi.exp
stop-reply-no-thread.c
stop-reply-no-thread.exp
sysroot.c
sysroot.exp
transfer.txt
unittest.exp
wrapper.c
wrapper.exp