aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/fullname.exp
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-07-09 10:50:52 +0000
committerPedro Alves <palves@redhat.com>2008-07-09 10:50:52 +0000
commita4a9b1c4f23dbe0165cce217f253c38e845b0030 (patch)
tree5764a6d7e8b45aaba2af1f21ad977e3171dad7af /gdb/testsuite/gdb.base/fullname.exp
parent0cd63f3d26e55bafcd3304a36f517a20f6dc9e44 (diff)
downloadgdb-a4a9b1c4f23dbe0165cce217f253c38e845b0030.zip
gdb-a4a9b1c4f23dbe0165cce217f253c38e845b0030.tar.gz
gdb-a4a9b1c4f23dbe0165cce217f253c38e845b0030.tar.bz2
* gdb.base/fullname.exp: Restore pwd if compiling failed.
Diffstat (limited to 'gdb/testsuite/gdb.base/fullname.exp')
-rw-r--r--gdb/testsuite/gdb.base/fullname.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/fullname.exp b/gdb/testsuite/gdb.base/fullname.exp
index 8467467..3298349 100644
--- a/gdb/testsuite/gdb.base/fullname.exp
+++ b/gdb/testsuite/gdb.base/fullname.exp
@@ -104,6 +104,7 @@ if { [gdb_breakpoint ${objdir}/${subdir}/tmp-${srcfile}:${line} {no-message}] !=
set save_pwd [pwd]
cd ${subdir}
if { [gdb_compile "tmp-${srcfile}" "${testfile}" executable {debug}] != "" } {
+ cd $save_pwd
return -1
}
cd $save_pwd