diff options
author | Gabriel Krisman Bertazi <gabriel@krisman.be> | 2014-09-11 00:03:35 -0300 |
---|---|---|
committer | Gabriel Krisman Bertazi <gabriel@krisman.be> | 2014-09-11 00:14:39 -0300 |
commit | 3adc1a7d457d7fcdc413b970f1ed02b0925e6da8 (patch) | |
tree | 0981b1f782f4af582843cf381528a0d67bfc7ddb | |
parent | 9b5d451f417a5a0b88e861b2249f75024b7ac57d (diff) | |
download | gdb-3adc1a7d457d7fcdc413b970f1ed02b0925e6da8.zip gdb-3adc1a7d457d7fcdc413b970f1ed02b0925e6da8.tar.gz gdb-3adc1a7d457d7fcdc413b970f1ed02b0925e6da8.tar.bz2 |
Fix gdb.fortran/array-element.exp failures.
This fixes two FAIL results on this testcase which were caused by a
misplaced "continue" command. This testcase used to end inferior's
execution too soon, causing the following tests to fail. Now we break
right after inferior's loop and perform the rest of the tests there.
gdb/testsuite/ChangeLog:
* gdb.fortran/array-element.exp: Remove unexpected "continue"
command in testcase. Simplify testcase.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.fortran/array-element.exp | 15 |
2 files changed, 8 insertions, 12 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index fd932a5..d2d44cc 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-11 Gabriel Krisman Bertazi <gabriel@krisman.be> + + * gdb.fortran/array-element.exp: Remove unexpected "continue" + command in testcase. Simplify testcase. + 2014-09-10 Joel Brobecker <brobecker@adacore.com> * 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 579db03..1ac3623 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_test "continue" \ - "Continuing\\..*Breakpoint.*" \ - "continue to breakpoint" -gdb_test "print a(1)" ".*1 = 1.*" "print the first element of array a" +gdb_breakpoint [gdb_get_line_number "continue"] +gdb_continue_to_breakpoint "continue" -gdb_test "continue" \ - "Continuing\\..*Breakpoint.*" \ - "continue to breakpoint once again" +gdb_test "print a(1)" ".*1 = 1.*" "print the first element of array a" gdb_test "print a(2)" ".*2 = 2.*" "print the second element of array a" |