]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.base/fullname.exp: Restore pwd if compiling failed.
authorPedro Alves <palves@redhat.com>
Wed, 9 Jul 2008 10:50:52 +0000 (10:50 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Jul 2008 10:50:52 +0000 (10:50 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/fullname.exp

index de83fcd2fb55987b6ebd31198a42ee727ac1d183..27886568cee95589e7bfded560aa22cb2a445da1 100644 (file)
@@ -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.
index 84674678149758b4385dc2fda41fb7fc52d593f0..3298349d9d6c6d469a3c98d2fedcbed9f6284628 100644 (file)
@@ -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