aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-breakpoint.exp
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2020-06-30 18:40:21 +0200
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2020-06-30 18:40:21 +0200
commit2a17c803f6e70f26a1ce0c0b8c3c05a9b963b19b (patch)
treedb0b2b4ce6a6440e373a8d89b0f7b2968300161a /gdb/testsuite/gdb.python/py-breakpoint.exp
parentbbd19b19e44ee6f547291db62cba7150bb407a4c (diff)
downloadbinutils-2a17c803f6e70f26a1ce0c0b8c3c05a9b963b19b.zip
binutils-2a17c803f6e70f26a1ce0c0b8c3c05a9b963b19b.tar.gz
binutils-2a17c803f6e70f26a1ce0c0b8c3c05a9b963b19b.tar.bz2
Fix test breakages caused by removal of gdb_py_test_multiple.
Tom de Vries detected that some python tests were broken as they were still using gdb_py_test_multiple that was replaced by gdb_test_multiline. Repair these tests by using the new function. gdb/testsuite/ChangeLog 2020-06-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> * gdb.python/py-breakpoint.exp: use gdb_test_multiline instead of gdb_py_test_multiple. * gdb.python/py-cmd.exp: Likewise. * gdb.python/py-events.exp: Likewise. * gdb.python/py-function.exp: Likewise. * gdb.python/py-inferior.exp: Likewise. * gdb.python/py-infthread.exp: Likewise. * gdb.python/py-linetable.exp: Likewise. * gdb.python/py-parameter.exp: Likewise. * gdb.python/py-value.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-breakpoint.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-breakpoint.exp14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp
index 805d854..f81a769 100644
--- a/gdb/testsuite/gdb.python/py-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-breakpoint.exp
@@ -320,7 +320,7 @@ proc_with_prefix test_bkpt_eval_funcs { } {
}
delete_breakpoints
- gdb_py_test_multiple "Sub-class a breakpoint" \
+ gdb_test_multiline "Sub-class a breakpoint" \
"python" "" \
"class bp_eval (gdb.Breakpoint):" "" \
" inf_i = 0" "" \
@@ -333,7 +333,7 @@ proc_with_prefix test_bkpt_eval_funcs { } {
" return False" "" \
"end" ""
- gdb_py_test_multiple "Sub-class a second breakpoint" \
+ gdb_test_multiline "Sub-class a second breakpoint" \
"python" "" \
"class bp_also_eval (gdb.Breakpoint):" "" \
" count = 0" "" \
@@ -344,7 +344,7 @@ proc_with_prefix test_bkpt_eval_funcs { } {
" return False" "" \
"end" ""
- gdb_py_test_multiple "Sub-class a third breakpoint" \
+ gdb_test_multiline "Sub-class a third breakpoint" \
"python" "" \
"class basic (gdb.Breakpoint):" "" \
" count = 0" "" \
@@ -381,7 +381,7 @@ proc_with_prefix test_bkpt_eval_funcs { } {
"Set breakpoint" 0
gdb_py_test_silent_cmd "python eval_bp2.condition = \"1==1\"" \
"Set a condition" 0
- gdb_py_test_multiple "Construct an eval function" \
+ gdb_test_multiline "Construct an eval function" \
"python" "" \
"def stop_func ():" "" \
" return True" "" \
@@ -402,7 +402,7 @@ proc_with_prefix test_bkpt_eval_funcs { } {
gdb_test "python print (check_eval.count)" "1" \
"Test that evaluate function is run when location also has normal bp"
- gdb_py_test_multiple "Sub-class a watchpoint" \
+ gdb_test_multiline "Sub-class a watchpoint" \
"python" "" \
"class wp_eval (gdb.Breakpoint):" "" \
" def stop (self):" "" \
@@ -434,7 +434,7 @@ proc_with_prefix test_bkpt_temporary { } {
}
delete_breakpoints
- gdb_py_test_multiple "Sub-class and check temporary breakpoint" \
+ gdb_test_multiline "Sub-class and check temporary breakpoint" \
"python" "" \
"class temp_bp (gdb.Breakpoint):" "" \
" count = 0" "" \
@@ -521,7 +521,7 @@ proc_with_prefix test_bkpt_events {} {
clean_restart ${testfile}
- gdb_py_test_multiple "Create event handler" \
+ gdb_test_multiline "Create event handler" \
"python" "" \
"def note_event(arg):" "" \
" global last_bp_event" "" \