From patchwork Sun Apr 13 07:41:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Blaikie X-Patchwork-Id: 526 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 6156536007A for ; Sun, 13 Apr 2014 00:41:31 -0700 (PDT) Received: by homiemail-mx20.g.dreamhost.com (Postfix, from userid 14314964) id 2678640E1D64F; Sun, 13 Apr 2014 00:41:30 -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 B522240F8AB7E for ; Sun, 13 Apr 2014 00:41:30 -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:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=fz6yoOzpY3C8UUpPicOvp9mI46p0l IQOv056mvgTjKT1qE2whKGJdQNZwqjanXgtYGGHFQTnxuqsvqcV49z2ErhcFaAG3 2/8ss8vyRe+N7N1Kl8uKRkRwwhaZUmjsITCagKvf+VpPeAMAD65YHBcll9EjY0t5 JUSKl1lq6JNcQo= 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:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=4l8tYFlT7MwArinmbz5JCGHrOj0=; b=D2K TjNHcEXa0kVD2gvG5wOT+/sOIbY7Qd8i8nTbTXDwgijpoSMn/rTvp96TOQpIq6r8 oFGJG43u5LB1/KrUHI5hNPIsuio98XuMNCU0L+vYKkcZR8YujKR+8kVti/Vbo3kh Hq5j4TrdZScqDl3QCYkPRLRXRum+LAxrQotGcO4w= Received: (qmail 22854 invoked by alias); 13 Apr 2014 07:41:28 -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 22843 invoked by uid 89); 13 Apr 2014 07:41:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f44.google.com Received: from mail-qg0-f44.google.com (HELO mail-qg0-f44.google.com) (209.85.192.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 13 Apr 2014 07:41:26 +0000 Received: by mail-qg0-f44.google.com with SMTP id a108so7241896qge.31 for ; Sun, 13 Apr 2014 00:41:24 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.101.180 with SMTP id u49mr40231537qge.27.1397374884083; Sun, 13 Apr 2014 00:41:24 -0700 (PDT) Received: by 10.140.30.74 with HTTP; Sun, 13 Apr 2014 00:41:23 -0700 (PDT) Date: Sun, 13 Apr 2014 00:41:23 -0700 Message-ID: Subject: [patch] correct and xfail test due to GCC PR55641 From: David Blaikie To: gdb-patches X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in gdb.python/lib-types.exp is erroneously validating buggy GCC behavior. The attached patch corrects the test and xfails it under GCC with the appropriate bug. The corrected test passes with clang. commit 6601c3836f24356a5b96a8ebcb8b9e3414093414 Author: David Blaikie Date: Sun Apr 13 00:38:47 2014 -0700 Fix and XFAIL test due to GCC PR55641, passes with clang gdb/testsuite/ * gdb.python/lib-types.exp: Fix test and xfail under gcc due to gcc/55641. diff --git gdb/testsuite/ChangeLog gdb/testsuite/ChangeLog index 730c116..b117684 100644 --- gdb/testsuite/ChangeLog +++ gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-04-12 David Blaikie + + * gdb.python/lib-types.exp: Fix test and xfail under gcc due to gcc/55641. + 2014-04-12 Siva Chandra Reddy Doug Evans diff --git gdb/testsuite/gdb.python/lib-types.exp gdb/testsuite/gdb.python/lib-types.exp index 8b9ff34..5ead2cb 100644 --- gdb/testsuite/gdb.python/lib-types.exp +++ gdb/testsuite/gdb.python/lib-types.exp @@ -103,7 +103,8 @@ gdb_test_multiple "python print (str (basic_type_typedef_const_typedef_class1_ob # test nested typedef/reference stripping gdb_test_no_output "python typedef_const_typedef_class1_ref_obj = gdb.parse_and_eval ('typedef_const_typedef_class1_ref_obj')" gdb_test_no_output "python basic_type_typedef_const_typedef_class1_ref_obj = gdb.types.get_basic_type (typedef_const_typedef_class1_ref_obj.type)" -gdb_test "python print (str (typedef_const_typedef_class1_ref_obj.type))" "const typedef_const_typedef_class1_ref" +if {[test_compiler_info {gcc-*-*}]} { setup_xfail gdb/55641 *-*-* } +gdb_test "python print (str (typedef_const_typedef_class1_ref_obj.type))" "\[\r\n\]+typedef_const_typedef_class1_ref" set test "nested typedef/ref stripping" gdb_test_multiple "python print (str (basic_type_typedef_const_typedef_class1_ref_obj))" $test { -re "\[\r\n\]+class1\[\r\n\]+$gdb_prompt $" {