diff options
author | Tom de Vries <tdevries@suse.de> | 2020-10-14 13:17:58 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-10-14 13:17:58 +0200 |
commit | 8c8bd0babc6039a4cef7d60d57b1b68e7a7f2e70 (patch) | |
tree | f197f37a8b4fe365e6034530e16fc58c46c97847 | |
parent | 76547ab31b16b521e29892cab5a29b60b52291a5 (diff) | |
download | gdb-8c8bd0babc6039a4cef7d60d57b1b68e7a7f2e70.zip gdb-8c8bd0babc6039a4cef7d60d57b1b68e7a7f2e70.tar.gz gdb-8c8bd0babc6039a4cef7d60d57b1b68e7a7f2e70.tar.bz2 |
[gdb/testsuite] Fix gdb.ada/mi_catch_ex{,_hand}.exp FAILs
The test-case gdb.ada/mi_catch_ex.exp tests two scenarios.
The two scenarios are separated by:
- a mi_run_to_main (before commit b75d55d4d2 "Eliminate mi_run_to_main,
introduce mi_clean_restart")
- a mi_runto_main (after that commit)
The now removed mi_run_to_main contained a mi_delete_breakpoints, while
mi_runto_main does not, which causes FAILs in the second scenario.
Fix this by adding the missing mi_delete_breakpoints in the test-case, and
likewise in gdb.ada/mi_catch_ex_hand.exp.
Reg-tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-10-14 Tom de Vries <tdevries@suse.de>
PR testsuite/26732
* gdb.ada/mi_catch_ex.exp: Do mi_delete_breakpoints before running
scenario 2.
* gdb.ada/mi_catch_ex_hand.exp: Same.
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.ada/mi_catch_ex.exp | 1 | ||||
-rw-r--r-- | gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4261e4a..fd8d921 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2020-10-14 Tom de Vries <tdevries@suse.de> + + PR testsuite/26732 + * gdb.ada/mi_catch_ex.exp: Do mi_delete_breakpoints before running + scenario 2. + * gdb.ada/mi_catch_ex_hand.exp: Same. + 2020-10-13 Pedro Alves <pedro@palves.net> * lib/mi-support.exp (mi_clean_restart): New. diff --git a/gdb/testsuite/gdb.ada/mi_catch_ex.exp b/gdb/testsuite/gdb.ada/mi_catch_ex.exp index 103ec85..1d2625a 100644 --- a/gdb/testsuite/gdb.ada/mi_catch_ex.exp +++ b/gdb/testsuite/gdb.ada/mi_catch_ex.exp @@ -123,6 +123,7 @@ continue_to_exception \ # - continue, the program exits. with_test_prefix "scenario 2" { + mi_delete_breakpoints if {[mi_runto_main] < 0} { fail "cannot run to main, testcase aborted" return 0 diff --git a/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp b/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp index ef3dd24..6e913c1 100644 --- a/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp +++ b/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp @@ -116,6 +116,7 @@ continue_to_exception_handler \ # but exit instead. with_test_prefix "scenario 2" { + mi_delete_breakpoints if {[mi_runto_main] < 0} { fail "cannot run to main, testcase aborted" return 0 |