diff options
author | Doug Evans <dje@google.com> | 2013-11-12 14:27:04 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-11-12 14:27:04 -0800 |
commit | 0682e708a53f432e8e80484b672ac81d1a1d21e9 (patch) | |
tree | 7684c6f7703e2e4d44a6b6b6fabf752654879a48 | |
parent | ee7615e1f3384c36e41fdf176abdabf8f21d1505 (diff) | |
download | gdb-0682e708a53f432e8e80484b672ac81d1a1d21e9.zip gdb-0682e708a53f432e8e80484b672ac81d1a1d21e9.tar.gz gdb-0682e708a53f432e8e80484b672ac81d1a1d21e9.tar.bz2 |
* gdb.base/fileio.exp: Make $dir2 writable after the test is done
so that "rm -rf $builddir" Just Works.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/fileio.exp | 5 |
2 files changed, 10 insertions, 0 deletions
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 <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. 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 |