commit | 105595524ead12dbbc03da683042960b8cbba072 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Tue Jul 25 15:13:16 2017 -0500 |
committer | Rob Landley <rob@landley.net> | Tue Jul 25 15:13:16 2017 -0500 |
tree | 12f50286b5aa6e9f2c3f467245e8e80c1ab3a365 | |
parent | cd64fbd192ba304ea8b94c5192bd8b613dd96834 [diff] |
Test that our rm -rf can zap chmod 000 directories. (Skip test on host because ubuntu's can't.)
diff --git a/tests/rm.test b/tests/rm.test index 624d60f..95710c8 100755 --- a/tests/rm.test +++ b/tests/rm.test
@@ -44,3 +44,7 @@ "yes\n" "" "" rm -rf dir* +mkdir -p one && touch one/two && chmod 000 one +SKIP_HOST=1 testing "-rf 000 dir" \ + "rm -rf one 2>/dev/null && [ ! -e one ] && echo yes" "yes\n" "" "" +chmod 777 one 2>/dev/null ; rm -rf one