From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29911 invoked by alias); 17 Aug 2010 06:19:10 -0000 Received: (qmail 29891 invoked by uid 22791); 17 Aug 2010 06:19:08 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Aug 2010 06:19:00 +0000 Received: (qmail 18456 invoked from network); 17 Aug 2010 06:18:58 -0000 Received: from unknown (HELO qiyaows) (yao@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 Aug 2010 06:18:58 -0000 Date: Tue, 17 Aug 2010 06:19:00 -0000 From: Yao Qi To: gdb-patches@sourceware.org Subject: [Patch, Testsuite] Update selftest.exp to match c source Message-ID: <20100817061849.GA30599@qiyaows> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes 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: 2010-08/txt/msg00252.txt.bz2 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 234 This patch is to update gdb.gdb/selftest.exp to reflect the latest source file, otherwise, it will fail in some cases due to failing to match source code. Is that OK? -- Yao Qi CodeSourcery yao@codesourcery.com (650) 331-3385 x739 --vtzGhvizbBRQ85DL Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="selftest.patch" Content-length: 1213 gdb/testsuite/ 2010-08-17 Yao Qi * gdb.gdb/selftest.exp (do_steps_and_nexts): Update test case to reflect latest c source file. Index: gdb/testsuite/gdb.gdb/selftest.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.gdb/selftest.exp,v retrieving revision 1.24 diff -u -p -r1.24 selftest.exp --- gdb/testsuite/gdb.gdb/selftest.exp 26 Jun 2010 06:44:47 -0000 1.24 +++ gdb/testsuite/gdb.gdb/selftest.exp 17 Aug 2010 05:58:37 -0000 @@ -185,11 +185,15 @@ proc do_steps_and_nexts {} { set description "step over instream initialization" set command "step" } - -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf..;.*$gdb_prompt $" { + -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf.*$gdb_prompt $" { set description "next over getcwd" set command "next" } - -re ".*quit_flag = 0.*$gdb_prompt $" { + -re ".*gdb_program_name = xstrdup.*$gdb_prompt $" { + set description "next over xstrdup" + set command "next" + } + -re ".*quit_flag = 0.*$gdb_prompt $" { set description "step over quit_flag initialization" set command "step" } --vtzGhvizbBRQ85DL--