From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23348 invoked by alias); 7 Oct 2011 21:23:45 -0000 Received: (qmail 23336 invoked by uid 22791); 7 Oct 2011 21:23:44 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Oct 2011 21:23:28 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RCHt9-0005c2-9q from joseph_myers@mentor.com for gdb-patches@sourceware.org; Fri, 07 Oct 2011 14:23:27 -0700 Received: from digraph.polyomino.org.uk ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 7 Oct 2011 22:23:25 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.74) (envelope-from ) id 1RCHt6-0006D0-JD for gdb-patches@sourceware.org; Fri, 07 Oct 2011 21:23:24 +0000 Date: Fri, 07 Oct 2011 21:23:00 -0000 From: "Joseph S. Myers" To: gdb-patches@sourceware.org Subject: Fix gdb.base/solib-symbol.exp for remote-host testing Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00207.txt.bz2 Similarly to my fix 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 * 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