This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Fix gdb.base/solib-symbol.exp for remote-host testing
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 7 Oct 2011 21:23:24 +0000 (UTC)
- Subject: Fix gdb.base/solib-symbol.exp for remote-host testing
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