]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix error check in gdb_py_test_silent_cmd
authorTom Tromey <tromey@adacore.com>
Wed, 20 Nov 2024 13:50:17 +0000 (06:50 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 9 Dec 2024 21:16:46 +0000 (14:16 -0700)
commit523a46ee9795bbec2d1d5cf7e434adc2a3044f94
treea0ce7a2503d1b90011d0fd74d099148f42b55126
parent9ba5ef4bf1e3266db47eb500beab803d03c74b3f
Fix error check in gdb_py_test_silent_cmd

I added a new test using gdb_py_test_silent_cmd, and then was
surprised to find out that the new test passed -- it caused a Python
exception and I had expected it to fail.  This patch fixes this proc
to detect this situation and fail.
gdb/testsuite/lib/gdb-python.exp