* gdb.base/fullname.exp: Restore pwd if compiling failed.

This commit is contained in:
Pedro Alves 2008-07-09 10:50:52 +00:00
parent 0cd63f3d26
commit a4a9b1c4f2
2 changed files with 5 additions and 0 deletions

View 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.

View 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