From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19848 invoked by alias); 7 Aug 2012 06:43:27 -0000 Received: (qmail 19839 invoked by uid 22791); 7 Aug 2012 06:43:26 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Tue, 07 Aug 2012 06:43:08 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q776h7GS011072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 7 Aug 2012 02:43:07 -0400 Received: from host2.jankratochvil.net (ovpn-116-27.ams2.redhat.com [10.36.116.27]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q776h3aP003020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 7 Aug 2012 02:43:06 -0400 Date: Tue, 07 Aug 2012 06:43:00 -0000 From: Jan Kratochvil To: Doug Evans Cc: gdb-patches@sourceware.org Subject: [patch] gdb.base/valgrind-infcall.exp compat. with Ubuntu 10.04.4 Message-ID: <20120807064303.GA4739@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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-08/txt/msg00210.txt.bz2 Hi Doug, according to freenode #gdb (2012-08-07 00:02:56 GMT) xdje: jankratochvil: I'm seeing valgrind-infcall.exp failing. While the docs for gdb_test_multiple claim the action is performed in the caller's context, that doesn't appear to be the case ... (2012-08-07 00:03:29 GMT) xdje: ... and the "break" for finding "Invalid free" is a nop, and we take the "Remote connection closed" exit. It works on Fedora systems and also on Ubuntu 12.04. On reported Ubuntu 10.04.4 the testcase quits early as UNSUPPORTED because valgrind is too old there. So I do not see how to test it, except for building custom valgrind there. Does it work for you this way? Thanks, Jan gdb/testsuite/ 2012-08-07 Jan Kratochvil * gdb.base/valgrind-infcall.exp (continue #$continue_count): Use global variable loop, not a 'break'. diff --git a/gdb/testsuite/gdb.base/valgrind-infcall.exp b/gdb/testsuite/gdb.base/valgrind-infcall.exp index 3224e9c..526d82a 100644 --- a/gdb/testsuite/gdb.base/valgrind-infcall.exp +++ b/gdb/testsuite/gdb.base/valgrind-infcall.exp @@ -90,12 +90,14 @@ gdb_test "$vgdbcmd" " in \\.?_start .*" "target remote for vgdb" gdb_test "monitor v.set gdb_output" "valgrind output will go to gdb.*" set continue_count 1 -while 1 { +set loop 1 +while {$loop} { set test "continue #$continue_count" gdb_test_multiple "continue" "" { -re "Invalid free\\(\\).*: main .*\r\n$gdb_prompt $" { pass $test - break + # In Ubuntu 10.04.4 environments 'break' does not work here. + set loop 0 } -re "Remote connection closed.*\r\n$gdb_prompt $" { fail "$test (remote connection closed)"