From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2218 invoked by alias); 3 May 2012 13:13:21 -0000 Received: (qmail 1999 invoked by uid 22791); 3 May 2012 13:13:20 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL 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; Thu, 03 May 2012 13:13:06 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1SPvq2-0005Mm-AK from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 03 May 2012 06:12:54 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 3 May 2012 06:12:47 -0700 Received: from localhost.localdomain (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.1.289.1; Thu, 3 May 2012 06:12:44 -0700 From: Yao Qi To: Subject: [PATCH 10/14] watchthreads-reorder.exp: Don't assume there is no infrun output after prompt. Date: Thu, 03 May 2012 13:13:00 -0000 Message-ID: <1336050869-29605-11-git-send-email-yao@codesourcery.com> In-Reply-To: <1336050869-29605-1-git-send-email-yao@codesourcery.com> References: <1336050869-29605-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain 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: 2012-05/txt/msg00071.txt.bz2 Copied from this, [RFC/WIP PATCH v2 05/14] watchthreads-reorder.exp: Don't assume there's no infrun output after the prompt http://sourceware.org/ml/gdb-patches/2011-12/msg00565.html gdb/testsuite: 2011-12-16 Pedro Alves * gdb.threads/watchthreads-reorder.exp: Don't assume there's no infrun output after the prompt. --- gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp index 5197983..a9464a4 100644 --- a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp +++ b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp @@ -92,5 +92,17 @@ foreach reorder {0 1} { with_test_prefix "reorder$reorder" { # found in the DEBUG_INFRUN code path. gdb_test "set debug infrun 1" - gdb_continue_to_breakpoint "break-at-exit" ".*break-at-exit.*" + set test "break-at-exit" + send_gdb "continue\n" + gdb_expect { + -re "Breakpoint .* (at|in) .* break-at-exit .*\r\n$gdb_prompt " { + pass $test + } + -re ".*$gdb_prompt $" { + fail $test + } + timeout { + fail "$test (timeout)" + } + } }} -- 1.7.0.4