From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14311 invoked by alias); 24 Aug 2012 13:54:25 -0000 Received: (qmail 14294 invoked by uid 22791); 24 Aug 2012 13:54:24 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,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; Fri, 24 Aug 2012 13:54:06 +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 q7ODs5e3030991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 24 Aug 2012 09:54:05 -0400 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 q7ODs4pX003713 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 24 Aug 2012 09:54:05 -0400 From: Tom Tromey To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: RFC: consolidate checks for _Unwind_DebugHook in test suite References: <877gt1zbr5.fsf@fleche.redhat.com> <20120824133931.GC5219@host2.jankratochvil.net> Date: Fri, 24 Aug 2012 13:54:00 -0000 In-Reply-To: <20120824133931.GC5219@host2.jankratochvil.net> (Jan Kratochvil's message of "Fri, 24 Aug 2012 15:39:31 +0200") Message-ID: <87ehmwmm4j.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) 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: 2012-08/txt/msg00721.txt.bz2 >>>>> "Jan" == Jan Kratochvil writes: Jan> If gdb_test_multiple FAILs it will leave "ok" as 1 which will run the whole Jan> testfile. Was it intentional? Maybe it was although I would expect the Jan> opposite. Bug inherited from the status quo ante. What do you think of this? I'm testing it. Tom diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 97e79af..0b4c679 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2101,15 +2101,14 @@ proc skip_hw_watchpoint_access_tests {} { proc skip_unwinder_tests {} { global gdb_prompt - set ok 1 + set ok 0 gdb_test_multiple "print _Unwind_DebugHook" "check for unwinder hook" { -re "= .*no debug info.*_Unwind_DebugHook.*\r\n$gdb_prompt $" { - set ok 0 } -re "= .*_Unwind_DebugHook.*\r\n$gdb_prompt $" { + set ok 1 } -re "No symbol .* in current context.\r\n$gdb_prompt $" { - set ok 0 } } if {!$ok} {