From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11736 invoked by alias); 23 Nov 2004 19:33:11 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11407 invoked from network); 23 Nov 2004 19:32:51 -0000 Received: from unknown (HELO pippin.tausq.org) (64.81.244.94) by sourceware.org with SMTP; 23 Nov 2004 19:32:51 -0000 Received: by pippin.tausq.org (Postfix, from userid 1000) id 07D13CD664; Tue, 23 Nov 2004 11:32:50 -0800 (PST) Date: Tue, 23 Nov 2004 20:41:00 -0000 From: Randolph Chung To: gdb@sources.redhat.com Subject: canonicalization of path names in test scripts Message-ID: <20041123193249.GO9148@tausq.org> Reply-To: Randolph Chung Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG: for GPG key, see http://www.tausq.org/gpg.txt User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-11/txt/msg00226.txt.bz2 I'm seeing some FAILs with the testsuite because of different ways to expanding srcdir between the testsuite and gdb. for example, in gdb.mi/mi-basics.exp, set envirodir [string_to_regexp ${srcdir}/${subdir}] mi_gdb_test "202-environment-directory ${srcdir}/${subdir}" \ "\\\^done,source-path=\"${envirodir}.\\\$cdir.\\\$cwd\"" \ "environment-directory arg operation" envirodir expands to "\.\./\.\./\.\./gdb-cvs/gdb/testsuite/gdb\.mi.\$cdir.\$cwd" what gdb actually prints is: ^done,source-path="/home/tausq/gdb/build-cvs/gdb/testsuite/../../../gdb-cvs/gdb/testsuite/gdb.mi:$cdir:$cwd" (i am running the test from /home/tausq/gdb/build-cvs/gdb/testsuite) what is the best way to fix this? we can of course loosen the match to ".*${envirodir}", but that seems rather suboptimal. thoughts? randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/