From: Pedro Alves Date: Wed, 9 Jul 2008 10:50:52 +0000 (+0000) Subject: * gdb.base/fullname.exp: Restore pwd if compiling failed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4a9b1c4f23dbe0165cce217f253c38e845b0030;p=binutils-gdb.git * gdb.base/fullname.exp: Restore pwd if compiling failed. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index de83fcd2fb5..27886568cee 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-07-09 Pedro Alves + + * gdb.base/fullname.exp: Restore pwd if compiling failed. + 2008-07-07 Jan Kratochvil * 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 84674678149..3298349d9d6 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