From a4a9b1c4f23dbe0165cce217f253c38e845b0030 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 9 Jul 2008 10:50:52 +0000 Subject: [PATCH] * gdb.base/fullname.exp: Restore pwd if compiling failed. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/fullname.exp | 1 + 2 files changed, 5 insertions(+) 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 -- 2.30.2