From 0682e708a53f432e8e80484b672ac81d1a1d21e9 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 12 Nov 2013 14:27:04 -0800 Subject: * gdb.base/fileio.exp: Make $dir2 writable after the test is done so that "rm -rf $builddir" Just Works. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/fileio.exp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index cb9baa1..a123561 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-11-12 Doug Evans + + * gdb.base/fileio.exp: Make $dir2 writable after the test is done + so that "rm -rf $builddir" Just Works. + 2013-11-12 Joel Brobecker * gdb.ada/mi_exc_info: New testcase. diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp index b9dfb38..f77218f 100644 --- a/gdb/testsuite/gdb.base/fileio.exp +++ b/gdb/testsuite/gdb.base/fileio.exp @@ -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 -- cgit v1.1