From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20413 invoked by alias); 12 Oct 2011 09:21:21 -0000 Received: (qmail 20402 invoked by uid 22791); 12 Oct 2011 09:21:20 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_BJ 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; Wed, 12 Oct 2011 09:20:48 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9C9Km4V011734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 12 Oct 2011 05:20:48 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9C9KkUl008402 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 12 Oct 2011 05:20:47 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p9C9Kjmh032407; Wed, 12 Oct 2011 11:20:45 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p9C9KiVJ032111; Wed, 12 Oct 2011 11:20:44 +0200 Date: Wed, 12 Oct 2011 09:21:00 -0000 From: Jan Kratochvil To: Sterling Augustine Cc: gdb-patches@sourceware.org Subject: [obv] Fix gdb.cp/namespace-enum.exp compilation [Re: Make DW_TAG_enumerator's consistent, regardless of containing scope] Message-ID: <20111012092043.GA27923@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: 2011-10/txt/msg00345.txt.bz2 On Tue, 11 Oct 2011 20:27:33 +0200, Sterling Augustine wrote: > gdb/ChangeLog > 2011-10-07 Sterling Augustine > > * dwarf2read.c (partial_die_parent_scope): Rearrange conditional > logic. > > gdb/testsuite/gdb.cp/ChangeLog > 2011-10-10 Sterling Augustine > > * gdb.cp/Makefile.in: Add namespace-enum test. > * gdb.cp/namespace-enum.exp: New file. > * gdb.cp/namespace-enum.c: New file. > * gdb.cp/namespace-enum-main.c: New file. +Running gdb/testsuite/gdb.cp/namespace-enum.exp ... +ERROR: (gdb/testsuite.unix.-m32/gdb.cp/namespace-enum) No such file or directory +UNRESOLVED: gdb.cp/namespace-enum.exp: print foo::B::B_B +FAIL: gdb.cp/namespace-enum.exp: print foo::B_B +FAIL: gdb.cp/namespace-enum.exp: print A_A There is a bit problem in the current testsuite framework some functions expect the subdirectory prefix and some do not. Checked in. Thanks, Jan http://sourceware.org/ml/gdb-cvs/2011-10/msg00098.html --- src/gdb/testsuite/ChangeLog 2011/10/11 19:19:08 1.2893 +++ src/gdb/testsuite/ChangeLog 2011/10/12 09:19:41 1.2894 @@ -1,3 +1,9 @@ +2011-10-12 Jan Kratochvil + + * gdb.cp/namespace-enum.exp (executable): New variable. + (binfile): Use ${objdir}/${subdir}/ prefix. + Use ${executable} for clean_restart. + 2011-10-11 Sterling Augustine * gdb.cp/Makefile.in: Add namespace-enum test. --- src/gdb/testsuite/gdb.cp/namespace-enum.exp 2011/10/11 19:19:08 1.1 +++ src/gdb/testsuite/gdb.cp/namespace-enum.exp 2011/10/12 09:19:42 1.2 @@ -18,7 +18,8 @@ set objfile0 ${testfile}.o set srcfile1 ${testfile}-main.cc set objfile1 ${testfile}-main.o -set binfile ${testfile} +set executable ${testfile} +set binfile ${objdir}/${subdir}/${executable} if { [gdb_compile "$srcdir/$subdir/$srcfile0" "$objdir/$subdir/$objfile0" object {debug c++}] != "" } { untested namespace-enum.exp @@ -35,7 +36,7 @@ return -1 } -clean_restart ${binfile} +clean_restart ${executable} gdb_test "print foo::B::B_B" "`foo::B' is not defined as an aggregate type." gdb_test "print foo::B_B" "foo::B_B" gdb_test "print A_A" "A_A"