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 | |
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')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/fullname.exp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index de83fcd..2788656 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-07-09 Pedro Alves <pedro@codesourcery.com> + + * gdb.base/fullname.exp: Restore pwd if compiling failed. + 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.base/value-double-free.exp, gdb.base/value-double-free.c: New. 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 |