From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3591 invoked by alias); 1 Jun 2011 15:02:09 -0000 Received: (qmail 3583 invoked by uid 22791); 1 Jun 2011 15:02:07 -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; Wed, 01 Jun 2011 15:01:48 +0000 Received: (qmail 12323 invoked from network); 1 Jun 2011 15:01:47 -0000 Received: from unknown (HELO ?192.168.0.102?) (yao@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Jun 2011 15:01:47 -0000 Message-ID: <4DE65451.1080500@codesourcery.com> Date: Wed, 01 Jun 2011 15:02:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: [testsuite, patch] Match __uClibc_main in ending-run.exp Content-Type: multipart/mixed; boundary="------------080100020109040808030407" 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: 2011-06/txt/msg00004.txt.bz2 This is a multi-part message in MIME format. --------------080100020109040808030407 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-length: 264 I got a FAIL in gdb.base/ending-run.exp on a port using uclibc when matching output of "step out of main". Different outputs on different system/libraries are considered, but uclibc is not. This patch is to match __uClibc_main for uclibc. OK? -- Yao (齐尧) --------------080100020109040808030407 Content-Type: text/x-patch; name="ending_run_uclibc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ending_run_uclibc.patch" Content-length: 707 2011-06-01 Yao Qi gdb/testsuite/ * gdb.base/ending-run.exp: Match __uClibc_main for uClibc. diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp index 9d1134d..0098f04 100644 --- a/gdb/testsuite/gdb.base/ending-run.exp +++ b/gdb/testsuite/gdb.base/ending-run.exp @@ -195,6 +195,10 @@ gdb_test_multiple "next" "step out of main" { -re ".*Program received signal SIGTRAP.*$gdb_prompt $" { pass "step out of main" } + -re ".*in.*__uClibc_main.*$gdb_prompt $" { + # This is what happens on system using uClibc. + pass "step out of main" + } } # When we're talking to a program running on a real stand-alone board, --------------080100020109040808030407--