Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfa/testsuite] Fix completion.exp on relative srcdir path
@ 2002-01-09 17:39 Daniel Jacobowitz
  2002-01-10 18:42 ` Jim Blandy
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2002-01-09 17:39 UTC (permalink / raw)
  To: gdb-patches

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  <drow@mvista.com>

	* 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  {


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-01-13 22:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-09 17:39 [rfa/testsuite] Fix completion.exp on relative srcdir path Daniel Jacobowitz
2002-01-10 18:42 ` Jim Blandy
2002-01-10 18:49   ` Daniel Jacobowitz
2002-01-13 14:13   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox