diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-01-13 22:13:06 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-01-13 22:13:06 +0000 |
commit | 37ab3bf83dfe0a45dc06d06d8d6e4168428a203f (patch) | |
tree | 7cee97386ce2129c89e38743aa8c77c584201cf8 /gdb/testsuite/gdb.base/completion.exp | |
parent | ade8f45eafa16fa00f3b47aeebedd8cb2b9deb23 (diff) | |
download | fsf-binutils-gdb-37ab3bf83dfe0a45dc06d06d8d6e4168428a203f.zip fsf-binutils-gdb-37ab3bf83dfe0a45dc06d06d8d6e4168428a203f.tar.gz fsf-binutils-gdb-37ab3bf83dfe0a45dc06d06d8d6e4168428a203f.tar.bz2 |
2002-01-13 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/completion.exp: Expand ${srcdir} to an absolute path.
Diffstat (limited to 'gdb/testsuite/gdb.base/completion.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/completion.exp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp index e8069d3..d8d5baf 100644 --- a/gdb/testsuite/gdb.base/completion.exp +++ b/gdb/testsuite/gdb.base/completion.exp @@ -656,8 +656,14 @@ gdb_expect { timeout { fail "(timeout) complete 'file ./Make'" } } - -gdb_test "cd ${srcdir}" "Working directory ${srcdir}.*" "cd to \${srcdir}" +# ${srcdir} may be a relative path. We want to make sure we end up +# in the right directory - so make sure we know where it is. +set mydir [pwd] +cd ${srcdir} +set fullsrcdir [pwd] +cd ${mydir} + +gdb_test "cd ${fullsrcdir}" "Working directory ${fullsrcdir}.*" "cd to \${srcdir}" send_gdb "file ./gdb.base/compl\t" sleep 1 gdb_expect { |