File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -496,11 +496,21 @@ gdb_continue_to_end
496496
497497# Verify that GDB responds gracefully when asked to set a breakpoint
498498# on a nonexistent source line.
499- #
500- gdb_test_no_output "set breakpoint pending off"
501- gdb_test "break 999" \
502- "No line 999 in the current file." \
503- "break on non-existent source line"
499+
500+ proc_with_prefix test_break_nonexistent_line {} {
501+ clean_restart break
502+
503+ if ![runto_main] then {
504+ return
505+ }
506+
507+ gdb_test_no_output "set breakpoint pending off"
508+ gdb_test "break 999" \
509+ "No line 999 in the current file." \
510+ "break on non-existent source line"
511+ }
512+
513+ test_break_nonexistent_line
504514
505515proc_with_prefix test_break_default {} {
506516 clean_restart break
You can’t perform that action at this time.
0 commit comments