* gdb.base/fileio.exp: Make $dir2 writable after the test is done

so that "rm -rf $builddir" Just Works.
This commit is contained in:
Doug Evans 2013-11-12 14:27:04 -08:00
parent ee7615e1f3
commit 0682e708a5
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-11-12 Doug Evans <dje@google.com>
* gdb.base/fileio.exp: Make $dir2 writable after the test is done
so that "rm -rf $builddir" Just Works.
2013-11-12 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/mi_exc_info: New testcase.

View File

@ -253,5 +253,10 @@ gdb_test continue \
gdb_exit
# Make dir2 writable again so rm -rf of a build tree Just Works.
if {[file exists $dir2] && ![file writable $dir2]} {
system "chmod +w $dir2"
}
set timeout $oldtimeout
return 0