summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-29 17:01:27 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-29 17:01:27 +0000
commit4de27b35b5f6ecfae588ece3127057a1dfb14d19 (patch)
tree131e6244b8be183ea586d06511bf7147712d817d
parente524bb986a849ce4271285cccfd7fff286952353 (diff)
NetBSD also denies to set sticky bit against regular file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/fileutils/test_fileutils.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index df07978b08..214f977ce5 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -913,7 +913,8 @@ class TestFileUtils
# FreeBSD ufs and tmpfs don't allow to change sticky bit against
# regular file. It's slightly strange. Anyway it's no effect bit.
# see /usr/src/sys/ufs/ufs/ufs_chmod()
- if /freebsd/ !~ RUBY_PLATFORM
+ # NetBSD also denies it.
+ if /freebsd|netbsd/ !~ RUBY_PLATFORM
chmod "u+t,o+t", 'tmp/a'
assert_equal 07500, File.stat('tmp/a').mode & 07777
chmod "a-t,a-s", 'tmp/a'