* test/fileutils/test_fileutils.rb: add OpenBSD case.

patched by Jeremy Evans [ruby-core:38530] see #5097

* test/ruby/test_process.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-07-27 15:30:11 +00:00
parent 969ae329ee
commit d7138d72db
3 changed files with 13 additions and 4 deletions

View file

@ -913,8 +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()
# NetBSD also denies it.
if /freebsd|netbsd/ !~ RUBY_PLATFORM
# NetBSD and OpenBSD also denies it.
if /freebsd|netbsd|openbsd/ !~ 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'