From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14389 invoked by alias); 14 Jan 2013 19:24:34 -0000 Received: (qmail 14380 invoked by uid 22791); 14 Jan 2013 19:24:32 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Jan 2013 19:24:28 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0EJORq8031006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 Jan 2013 14:24:27 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r0EJOQ3M020644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 14 Jan 2013 14:24:27 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Subject: RFC: fix race in py-explore.exp Date: Mon, 14 Jan 2013 19:24:00 -0000 Message-ID: <87vcazo9ed.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain 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: 2013-01/txt/msg00286.txt.bz2 I had py-explore.exp spuriously fail on me. I think it needs to expect the prompt in this spot. I'm not totally sure about this, comments requested. Built and regtested on x86-64 Fedora 16. Tom * gdb.python/py-explore.exp: Expect the gdb prompt. --- gdb/testsuite/gdb.python/py-explore.exp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp index 0fb67d3..bc4446d 100644 --- a/gdb/testsuite/gdb.python/py-explore.exp +++ b/gdb/testsuite/gdb.python/py-explore.exp @@ -96,7 +96,7 @@ gdb_test_multiple "explore ss_ptr" "" { -re "[pointer_description {ss_ptr} $SS].*" { pass "explore ss_ptr" gdb_test_multiple "y" "explore_as_single_value_pointer" { - -re "$SS_fields" { + -re "$SS_fields.*$gdb_prompt" { pass "explore ss_ptr as single value pointer" } } -- 1.7.7.6