diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-09 10:50:52 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-09 10:50:52 +0000 |
commit | a4a9b1c4f23dbe0165cce217f253c38e845b0030 (patch) | |
tree | 5764a6d7e8b45aaba2af1f21ad977e3171dad7af /gdb/testsuite/gdb.base/fullname.exp | |
parent | 0cd63f3d26e55bafcd3304a36f517a20f6dc9e44 (diff) | |
download | gdb-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.exp | 1 |
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 |