From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30944 invoked by alias); 12 Aug 2015 11:05:25 -0000 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 Received: (qmail 30662 invoked by uid 89); 12 Aug 2015 11:05:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 12 Aug 2015 11:05:24 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id CDC1A19CF94; Wed, 12 Aug 2015 11:05:22 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7CB5Kb0016877; Wed, 12 Aug 2015 07:05:21 -0400 Message-ID: <55CB2870.5050903@redhat.com> Date: Wed, 12 Aug 2015 11:05:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Andreas Arnez , gdb-patches@sourceware.org CC: Ulrich Weigand , Yao Qi Subject: Re: [PING][PATCH] gnu_vector.exp: Avoid some more known FAILs References: <878u9hwxa1.fsf@br87z6lw.de.ibm.com> In-Reply-To: <878u9hwxa1.fsf@br87z6lw.de.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-08/txt/msg00271.txt.bz2 On 08/11/2015 06:27 PM, Andreas Arnez wrote: > +gdb_test_multiple "return (int4) \{4, 2, 7, 6\}" $test { > + -re "#0 .* main .*$gdb_prompt $" { > + if { $ok } { > + pass $test > + gdb_test "continue" "4 2 7 6\r\n.*" "verify vector return value" > + } > + } > + -re "The location .* is unknown.\r\n.* return value .* will be ignored.\r\n" { > + kfail "gdb/8549" $test > + set ok 0 > + exp_continue > + } > + -re "Make add_some_intvecs return now. .y or n. $" { > + send_gdb "y\n" > + exp_continue > + } > +} If this fails without matching the first pattern above, then we can end up with a duplicate test message (kfail + fail). Maybe do something like this instead: set test "set vector return value" set should_kfail 0 set finished 0 gdb_test_multiple "return (int4) \{4, 2, 7, 6\}" $test { -re "#0 .* main .*$gdb_prompt $" { set finished 1 } -re "The location .* is unknown.\r\n.* return value .* will be ignored.\r\n" { set should_kfail 1 exp_continue } -re "Make add_some_intvecs return now. .y or n. $" { send_gdb "y\n" exp_continue } } if { $finished } { if { $should_kfail } { kfail "gdb/8549" $test } else { pass $test gdb_test "continue" "4 2 7 6\r\n.*" "verify vector return value" } } Otherwise LGTM. Thanks, Pedro Alves