diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index fd932a56b3c..d2d44cc4d72 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-11 Gabriel Krisman Bertazi + + * gdb.fortran/array-element.exp: Remove unexpected "continue" + command in testcase. Simplify testcase. + 2014-09-10 Joel Brobecker * gdb.dwarf2/dynarr-ptr.exp: Add a few ptype tests. diff --git a/gdb/testsuite/gdb.fortran/array-element.exp b/gdb/testsuite/gdb.fortran/array-element.exp index 579db03869e..1ac3623d5e0 100644 --- a/gdb/testsuite/gdb.fortran/array-element.exp +++ b/gdb/testsuite/gdb.fortran/array-element.exp @@ -31,18 +31,9 @@ if ![runto sub_] then { continue } -set bp_location [gdb_get_line_number "continue"] -gdb_test "break $bp_location" \ - "Breakpoint.*at.* file .*$srcfile, line $bp_location\\." \ - "breakpoint at continue" +gdb_breakpoint [gdb_get_line_number "continue"] +gdb_continue_to_breakpoint "continue" -gdb_test "continue" \ - "Continuing\\..*Breakpoint.*" \ - "continue to breakpoint" gdb_test "print a(1)" ".*1 = 1.*" "print the first element of array a" - -gdb_test "continue" \ - "Continuing\\..*Breakpoint.*" \ - "continue to breakpoint once again" gdb_test "print a(2)" ".*2 = 2.*" "print the second element of array a"