From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30297 invoked by alias); 12 Aug 2009 20:42:19 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 30193 invoked by uid 9561); 12 Aug 2009 20:42:18 -0000 Date: Wed, 12 Aug 2009 20:42:00 -0000 Message-ID: <20090812204218.30176.qmail@sourceware.org> From: swagiaal@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-keiths-expr-cumulative: Added namespace loop test to namespace-recursive.exp X-Git-Refname: refs/heads/archer-keiths-expr-cumulative X-Git-Reftype: branch X-Git-Oldrev: 74b786affde6239df0b070e4260f9f7dc5aab931 X-Git-Newrev: 9401a14311038ad70bf17e4865f7dab7b91966ce X-SW-Source: 2009-q3/txt/msg00094.txt.bz2 List-Id: The branch, archer-keiths-expr-cumulative has been updated via 9401a14311038ad70bf17e4865f7dab7b91966ce (commit) from 74b786affde6239df0b070e4260f9f7dc5aab931 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 9401a14311038ad70bf17e4865f7dab7b91966ce Author: Sami Wagiaalla Date: Wed Aug 12 16:39:14 2009 -0400 Added namespace loop test to namespace-recursive.exp ----------------------------------------------------------------------- Summary of changes: gdb/testsuite/gdb.cp/namespace-recursive.cc | 9 ++++++++- gdb/testsuite/gdb.cp/namespace-recursive.exp | 14 ++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) First 500 lines of diff: diff --git a/gdb/testsuite/gdb.cp/namespace-recursive.cc b/gdb/testsuite/gdb.cp/namespace-recursive.cc index cb712fa..f527d83 100644 --- a/gdb/testsuite/gdb.cp/namespace-recursive.cc +++ b/gdb/testsuite/gdb.cp/namespace-recursive.cc @@ -10,7 +10,14 @@ namespace C{ using namespace B; } +//--------------- +namespace D{ + using namespace D; + int dx = 99; +} +using namespace D; + int main(){ using namespace C; - return ax; + return ax + dx; } \ No newline at end of file diff --git a/gdb/testsuite/gdb.cp/namespace-recursive.exp b/gdb/testsuite/gdb.cp/namespace-recursive.exp index 4e6ad20..ed81e52 100644 --- a/gdb/testsuite/gdb.cp/namespace-recursive.exp +++ b/gdb/testsuite/gdb.cp/namespace-recursive.exp @@ -40,14 +40,20 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} -############################################ -# test printing of namespace imported within -# the function. - if ![runto_main] then { perror "couldn't run to breakpoint main" continue } +############################################ +# test printing from namespace imported into +# imported namespace + setup_xfail *-*-* gdb_test "print ax" "= 9" + +############################################ +# test that gdb can print without falling +# into search loop + +gdb_test "print dx" "= 99" hooks/post-receive -- Repository for Project Archer.