From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8102 invoked by alias); 1 Sep 2012 15:00:31 -0000 Received: (qmail 8094 invoked by uid 22791); 1 Sep 2012 15:00:30 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from server-nat-6.cs.umd.edu (HELO bacon.cs.umd.edu) (128.8.127.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 01 Sep 2012 15:00:17 +0000 Received: from [192.168.32.2] (pool-108-48-101-140.washdc.fios.verizon.net [108.48.101.140]) (Authenticated sender: khooyp) by bacon.cs.umd.edu (Postfix) with ESMTPSA id 3D612B4022C; Sat, 1 Sep 2012 11:00:15 -0400 (EDT) From: Khoo Yit Phang Content-Type: multipart/mixed; boundary=Apple-Mail-22-984710084 Subject: [PATCH] Add -nx for "xgdb" test in gdb/testsuite/gdb.gdb/selftest.exp Date: Sat, 01 Sep 2012 15:00:00 -0000 Message-Id: <387EE3E3-80B3-42E0-AFE7-1BAA78B422D3@cs.umd.edu> Cc: Khoo Yit Phang To: GDB Patches Mime-Version: 1.0 (Apple Message framework v1084) X-CSD-MailScanner-ID: 3D612B4022C.AB06A X-CSD-MailScanner: Found to be clean X-CSD-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-50, required 5, autolearn=not spam, ALL_TRUSTED -50.00) X-CSD-MailScanner-From: khooyp@cs.umd.edu X-CSD-MailScanner-Watermark: 1347116415.80976@yXp1xxcB7Bd4BIt+hJQwGQ 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: 2012-09/txt/msg00001.txt.bz2 --Apple-Mail-22-984710084 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Content-length: 225 Hi, The "xgdb" test in gdb/testsuite/gdb.gdb/selftest.exp was giving me spuriou= s results since it was loading ~/.gdbinit. Here's a patch that adds the -nx= option to prevent this problem. Thanks, Yit September 1, 2012 --Apple-Mail-22-984710084 Content-Disposition: attachment; filename=xgdb-no-init.txt Content-Type: text/plain; name="xgdb-no-init.txt" Content-Transfer-Encoding: quoted-printable Content-length: 748 gdb/ChangeLog: 2012-09-01 Khoo Yit Phang Add -nx option to "xgdb" test to prevent spurious results due to ~/.gdbinit. * testsuite/gdb.gdb/selftest.exp: (run until breakpoint at captured_main) Add -nx option. diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/sel= ftest.exp --- a/gdb/testsuite/gdb.gdb/selftest.exp +++ b/gdb/testsuite/gdb.gdb/selftest.exp @@ -303,7 +303,7 @@ set timeout 600 =20 set description "run until breakpoint at captured_main" - gdb_test_multiple "run -nw" "$description" { + gdb_test_multiple "run -nw -nx" "$description" { -re "Starting program.*Breakpoint \[0-9\]+,.*captured_main .data.* at .*m= ain.c:.*$gdb_prompt $" { pass "$description" } --Apple-Mail-22-984710084--