* Fix gdb.base/solib-symbol.exp for remote-host testing
@ 2011-10-07 21:23 Joseph S. Myers
2011-10-09 14:59 ` Joel Brobecker
0 siblings, 1 reply; 2+ messages in thread
From: Joseph S. Myers @ 2011-10-07 21:23 UTC (permalink / raw)
To: gdb-patches
Similarly to my fix
<http://sourceware.org/ml/gdb-patches/2011-10/msg00176.html> for
fixsection.exp, gdb.base/solib-symbol.exp also needs the filenames in
expected messages adjusted not to include directories so that it works
reliably for remote-host testing. OK to commit this patch?
2011-10-07 Joseph Myers <joseph@codesourcery.com>
* gdb.base/solib-symbol.exp: Do not include directories in
filenames in expected messages.
Index: gdb.base/solib-symbol.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/solib-symbol.exp,v
retrieving revision 1.7
diff -u -r1.7 solib-symbol.exp
--- gdb.base/solib-symbol.exp 1 Jan 2011 15:33:42 -0000 1.7
+++ gdb.base/solib-symbol.exp 7 Oct 2011 21:19:16 -0000
@@ -53,14 +53,14 @@
# Set a breakpoint in the binary.
gdb_test "br foo2" \
- "Breakpoint.*file.*${srcfile}.*" \
+ "Breakpoint.*file.*${testfile}\\.c.*" \
"foo2 in main"
delete_breakpoints
# Break in the library.
gdb_test "br foo" \
- "Breakpoint.*file.*${srcfile_lib}.*" \
+ "Breakpoint.*file.*${libname}\\.c.*" \
"foo in libmd"
gdb_test "continue" \
@@ -69,7 +69,7 @@
# This symbol is now looked up in the ELF library.
gdb_test "br foo2" \
- "Breakpoint.*file.*${srcfile_lib}.*" \
+ "Breakpoint.*file.*${libname}\\.c.*" \
"foo2 in mdlib"
gdb_exit
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fix gdb.base/solib-symbol.exp for remote-host testing
2011-10-07 21:23 Fix gdb.base/solib-symbol.exp for remote-host testing Joseph S. Myers
@ 2011-10-09 14:59 ` Joel Brobecker
0 siblings, 0 replies; 2+ messages in thread
From: Joel Brobecker @ 2011-10-09 14:59 UTC (permalink / raw)
To: Joseph S. Myers; +Cc: gdb-patches
> 2011-10-07 Joseph Myers <joseph@codesourcery.com>
>
> * gdb.base/solib-symbol.exp: Do not include directories in
> filenames in expected messages.
I thought we might see more than one testcase having this problem...
This is OK.
Thanks,
--
Joel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-09 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-07 21:23 Fix gdb.base/solib-symbol.exp for remote-host testing Joseph S. Myers
2011-10-09 14:59 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox