gdb/testsuite/gdb.base/break.exp: split test_break_nonexistent_line
Change-Id: I4390dd5da23bae83ccc513ad0de0169ddff7df12 Approved-By: Kevin Buettner <kevinb@redhat.com>
This commit is contained in:
parent
9df9cfe23c
commit
750375dd69
1 changed files with 15 additions and 5 deletions
|
@ -496,11 +496,21 @@ gdb_continue_to_end
|
|||
|
||||
# Verify that GDB responds gracefully when asked to set a breakpoint
|
||||
# on a nonexistent source line.
|
||||
#
|
||||
gdb_test_no_output "set breakpoint pending off"
|
||||
gdb_test "break 999" \
|
||||
"No line 999 in the current file." \
|
||||
"break on non-existent source line"
|
||||
|
||||
proc_with_prefix test_break_nonexistent_line {} {
|
||||
clean_restart break
|
||||
|
||||
if ![runto_main] then {
|
||||
return
|
||||
}
|
||||
|
||||
gdb_test_no_output "set breakpoint pending off"
|
||||
gdb_test "break 999" \
|
||||
"No line 999 in the current file." \
|
||||
"break on non-existent source line"
|
||||
}
|
||||
|
||||
test_break_nonexistent_line
|
||||
|
||||
proc_with_prefix test_break_default {} {
|
||||
clean_restart break
|
||||
|
|
Loading…
Add table
Reference in a new issue