From patchwork Mon Mar 31 13:50:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Shawcroft X-Patchwork-Id: 354 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx20.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id A0B65360375 for ; Mon, 31 Mar 2014 06:50:39 -0700 (PDT) Received: by homiemail-mx20.g.dreamhost.com (Postfix, from userid 14314964) id 515A34150D97E; Mon, 31 Mar 2014 06:50:39 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx20.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx20.g.dreamhost.com (Postfix) with ESMTPS id 211B9415CD59C for ; Mon, 31 Mar 2014 06:50:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type; q=dns; s=default; b=wTeQ1i4O/MQPXjdokNeGTcVZfl3D2 4l1sfbTUTCtjJttxzvtrrd2PhUseK8aqBGNTWmwGdwYD+tQY7AvVU04EDCzwKiax SOgeFys757alfmfkojj92AvcCAHbvJZrxfnRKTOY9BjKAKStFN3/FbT7kZhZFbC6 9zL3uYThxvgk+8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type; s=default; bh=/Rpsw33Xjzsw/+TO9HDeCCYfYUE=; b=wj6 ieoCsWElI7l243pl+a8hZzsK3Ou1qJEccsxM3x7AU0XU7EFzDtB4gzCbVEX2Pq2q vck16GiaEz2jZpiBUANqVM9oIL2ctlOJHz961kqlOS99wWWQm0OS5dFlqkE11TW9 ALqRuNwcOdnYghoZZsxg2lYTVFwjWIObbk9DUsR8= Received: (qmail 15668 invoked by alias); 31 Mar 2014 13:50:36 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 15658 invoked by uid 89); 31 Mar 2014 13:50:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 31 Mar 2014 13:50:28 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Mon, 31 Mar 2014 14:50:26 +0100 Received: from [10.1.207.52] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 31 Mar 2014 14:50:42 +0100 Message-ID: <533972A1.6030604@arm.com> Date: Mon, 31 Mar 2014 14:50:25 +0100 From: Marcus Shawcroft User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: [PATCH] Drop prefix from unsupported source path. X-MC-Unique: 114033114502603401 X-DH-Original-To: gdb@patchwork.siddhesh.in Hi, Various gdb tests report the absolute path to a source file in an UNSUPPORTED outcome. This creates noise when comparing result output with previous test runs. This patch drops the directory prefix from the reported path in a couple of the offending unsupported calls. OK? Cheers /Marcus 2014-03-31 Marcus Shawcroft * lib/gdb.exp (gdb_compile_pthreads, gdb_compile_objc): Drop prefix from unsupported source file path. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 73e935a..dd59738 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2828,7 +2828,7 @@ proc gdb_compile_pthreads {source dest type options} { } } if {!$built_binfile} { - unsupported "Couldn't compile $source: ${why_msg}" + unsupported "Couldn't compile [file tail $source]: ${why_msg}" return -1 } } @@ -3000,7 +3000,7 @@ proc gdb_compile_objc {source dest type options} { } } if {!$built_binfile} { - unsupported "Couldn't compile $source: ${why_msg}" + unsupported "Couldn't compile [file tail $source]: ${why_msg}" return -1 } }