diff options
author | Rob Landley <rob@landley.net> | 2017-07-25 15:13:16 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-07-25 15:13:16 -0500 |
commit | 105595524ead12dbbc03da683042960b8cbba072 (patch) | |
tree | 12f50286b5aa6e9f2c3f467245e8e80c1ab3a365 /tests | |
parent | cd64fbd192ba304ea8b94c5192bd8b613dd96834 (diff) | |
download | toybox-105595524ead12dbbc03da683042960b8cbba072.tar.gz |
Test that our rm -rf can zap chmod 000 directories. (Skip test on host
because ubuntu's can't.)
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/rm.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/rm.test b/tests/rm.test index 624d60fd..95710c82 100755 --- a/tests/rm.test +++ b/tests/rm.test @@ -44,3 +44,7 @@ testing "-r nested_dir" "rm -r dir1/dir2/ 2>/dev/null && "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 |