From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20117 invoked by alias); 10 Jan 2002 01:39:20 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20076 invoked from network); 10 Jan 2002 01:39:19 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 10 Jan 2002 01:39:19 -0000 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16OUCM-0005VN-00 for ; Wed, 09 Jan 2002 20:40:06 -0500 Date: Wed, 09 Jan 2002 17:39:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: [rfa/testsuite] Fix completion.exp on relative srcdir path Message-ID: <20020109204006.A21094@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i X-SW-Source: 2002-01/txt/msg00215.txt.bz2 I always configure with relative paths - srcdir = ../../../src/gdb/testsuite or so. That caused a bogus failure. Is this patch OK? -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer 2002-01-09 Daniel Jacobowitz * gdb.base/completion.exp: Expand ${srcdir} to an absolute path. Index: completion.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/completion.exp,v retrieving revision 1.10 diff -u -p -r1.10 completion.exp --- completion.exp 2001/12/17 22:58:42 1.10 +++ completion.exp 2002/01/10 01:37:15 @@ -656,8 +656,13 @@ gdb_expect { timeout { fail "(timeout) complete 'file ./Make'" } } +set mydir [pwd] +cd ${objdir} +cd ${srcdir} +set fullsrcdir [pwd] +cd ${mydir} -gdb_test "cd ${srcdir}" "Working directory ${srcdir}.*" "cd to \${srcdir}" +gdb_test "cd ${fullsrcdir}" "Working directory ${fullsrcdir}.*" "cd to \${srcdir}" send_gdb "file ./gdb.base/compl\t" sleep 1 gdb_expect {