[PATCH] [gdb/testsuite] Handle missing curses in gdb.python/py-missing-debug.exp
Kevin Buettner
kevinb@redhat.com
Sat Sep 7 18:09:07 GMT 2024
On Sat, 7 Sep 2024 05:37:13 +0200
Tom de Vries <tdevries@suse.de> wrote:
> On a system with python 3.6, module gdb.missing_debug imports module curses,
> so when running test-case gdb.python/py-missing-debug.exp on a system without
> that module installed, we run into:
> ...
> (gdb) source py-missing-debug.py^M
> Python Exception <class 'ImportError'>: Module 'curses' is not installed.^M
> Use:^M
> sudo zypper install python36-curses^M
> to install it.^M
> Error occurred in Python: Module 'curses' is not installed.^M
> Use:^M
> sudo zypper install python36-curses^M
> to install it.^M
> (gdb) FAIL: gdb.python/py-missing-debug.exp: source python script
> ...
>
> Fix this by issuing UNSUPPORTED instead, and bailing out.
>
> Tested on x86_64-linux.
>
> PR testsuite/31576
> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31576
LGTM.
Approved-by: Kevin Buettner <kevinb@redhat.com>
More information about the Gdb-patches
mailing list