diff options
author | Luis Machado <lgustavo@codesourcery.com> | 2014-10-17 11:28:17 -0300 |
---|---|---|
committer | Luis Machado <lgustavo@codesourcery.com> | 2014-10-17 11:28:17 -0300 |
commit | a80db0157c31d3f0fbb37ea40384b11041429a2f (patch) | |
tree | 59f7ba93c9c0637d6649db8a4022a3d8fbb66465 /gdb/testsuite/gdb.guile | |
parent | b22089abcba7cc3be26a9ab7d60e01299ac13ea0 (diff) | |
download | gdb-a80db0157c31d3f0fbb37ea40384b11041429a2f.zip gdb-a80db0157c31d3f0fbb37ea40384b11041429a2f.tar.gz gdb-a80db0157c31d3f0fbb37ea40384b11041429a2f.tar.bz2 |
Fix mingw32 failures due to incorrect directory separator in pattern
Some testcases, mostly gdb.reverse ones, assume the presence of a
'/' directory separator before the source file name. This is
incorrect for mingw32 hosts, generating false failures for those
tests.
I attempted to catch most of the occurrences of the pattern
".*/$srcfile" and replaced them with ".*$srcfile". The latter
is used elsewhere in the testsuite. The resulting patch is attached.
I also see other occurrences of the same assumption throughout the
testsuite, but usually they are arguments for function calls and i
seem to recall either the test harness or GDB deals with those
paths properly.
gdb/testsuite:
2014-10-17 Luis Machado <lgustavo@codesourcery.com>
* gdb.guile/scm-breakpoint.exp: Do not assume any
directory separators when matching source file paths.
* gdb.python/py-breakpoint.exp: Likewise.
* gdb.reverse/break-precsave.exp: Likewise.
* gdb.reverse/break-reverse.exp: Likewise.
* gdb.reverse/consecutive-precsave.exp: Likewise.
* gdb.reverse/finish-precsave.exp: Likewise.
* gdb.reverse/finish-reverse-bkpt.exp: Likewise.
* gdb.reverse/finish-reverse.exp: Likewise.
* gdb.reverse/i386-precsave.exp: Likewise.
* gdb.reverse/i387-env-reverse.exp: Likewise.
* gdb.reverse/i387-stack-reverse.exp: Likewise.
* gdb.reverse/machinestate-precsave.exp: Likewise.
* gdb.reverse/machinestate.exp: Likewise.
* gdb.reverse/sigall-precsave.exp: Likewise.
* gdb.reverse/solib-precsave.exp: Likewise.
* gdb.reverse/step-precsave.exp: Likewise.
* gdb.reverse/until-precsave.exp: Likewise.
* gdb.reverse/watch-precsave.exp: Likewise.
* gdb.reverse/watch-reverse.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.guile')
-rw-r--r-- | gdb/testsuite/gdb.guile/scm-breakpoint.exp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.guile/scm-breakpoint.exp b/gdb/testsuite/gdb.guile/scm-breakpoint.exp index d181710..6a3938e 100644 --- a/gdb/testsuite/gdb.guile/scm-breakpoint.exp +++ b/gdb/testsuite/gdb.guile/scm-breakpoint.exp @@ -126,7 +126,7 @@ proc test_bkpt_deletion { } { gdb_test "guile (print (length del-list))" \ "= 3" "number of breakpoints before delete" gdb_continue_to_breakpoint "Break at multiply." \ - ".*/$srcfile:$deltst_location.*" + ".*$srcfile:$deltst_location.*" gdb_scm_test_silent_cmd "guile (delete-breakpoint! dp1)" \ "delete breakpoint" gdb_test "guile (print (breakpoint-number dp1))" \ @@ -136,7 +136,7 @@ proc test_bkpt_deletion { } { "get breakpoint list 5" gdb_test "guile (print (length del-list))" \ "= 2" "number of breakpoints after delete" - gdb_continue_to_breakpoint "Break at end." ".*/$srcfile:$end_location.*" + gdb_continue_to_breakpoint "Break at end." ".*$srcfile:$end_location.*" } } @@ -372,7 +372,7 @@ proc test_bkpt_eval_funcs { } { "create also-eval-bp1 breakpoint" gdb_scm_test_silent_cmd "guile (define never-eval-bp1 (make-bp-also-eval \"$end_location\"))" \ "create never-eval-bp1 breakpoint" - gdb_continue_to_breakpoint "Break at multiply." ".*/$srcfile:$bp_location2.*" + gdb_continue_to_breakpoint "Break at multiply." ".*$srcfile:$bp_location2.*" gdb_test "print i" "3" "check inferior value matches guile accounting" gdb_test "guile (print (bp-eval-inf-i eval-bp1))" \ "= 3" "check guile accounting matches inferior" @@ -414,7 +414,7 @@ proc test_bkpt_eval_funcs { } { gdb_test "guile (print (bp-eval-count check-eval))" \ "= 0" \ "test that evaluate function has not been yet executed (ie count = 0)" - gdb_continue_to_breakpoint "Break at multiply." ".*/$srcfile:$bp_location2.*" + gdb_continue_to_breakpoint "Break at multiply." ".*$srcfile:$bp_location2.*" gdb_test "guile (print (bp-eval-count check-eval))" \ "= 1" \ "test that evaluate function is run when location also has normal bp" |