Skip to content

Commit d60ae64

Browse files
committed
[gdb/testsuite] Fix gdb.multi/pending-bp.exp without python support
With a gdb build without python support and test-case gdb.multi/pending-bp.exp, I run into: ... (gdb) python bp=[b for b in gdb.breakpoints() if b.number == 5][0]^M Python scripting is not supported in this copy of GDB.^M (gdb) FAIL: $exp: py_test_toggle_thread: find Python gdb.Breakpoint object ... Fix this by requiring python support for part of the test-case. Tested on aarch64-linux. Reviewed-By: Keith Seitz <[email protected]>
1 parent 2b374e9 commit d60ae64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gdb/testsuite/gdb.multi/pending-bp.exp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,5 +328,7 @@ proc_with_prefix py_test_clear_thread {} {
328328
# Run all the tests.
329329
test_no_inf_display
330330
test_pending_toggle
331-
py_test_toggle_thread
332-
py_test_clear_thread
331+
if { [allow_python_tests] } {
332+
py_test_toggle_thread
333+
py_test_clear_thread
334+
}

0 commit comments

Comments
 (0)