summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-01 08:48:17 +0000
committerodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-01 08:48:17 +0000
commitf17b95f21caf728a50b83a5d8786a20a45edda71 (patch)
treeac08298aa2b26348d26db5b5818ed7f185fdf4cc
parent1c916105fdd2daa2b38be3ee3e818e823d05545b (diff)
test/fileutils/test_fileutils.rb: AIX does not allow a sticky bit on a regular file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/fileutils/test_fileutils.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fe63f4788e6..8b28bf57d91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Oct 1 17:38:53 2014 Rei Odaira <Rei.Odaira@gmail.com>
+
+ * test/fileutils/test_fileutils.rb: AIX does not allow
+ a sticky bit on a regular file.
+
Wed Oct 1 17:31:41 2014 Eric Hodel <drbrain@segment7.net>
* NEWS: Add RubyGems update.
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 9263fe0180a..d948219959d 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -996,8 +996,8 @@ class TestFileUtils < Test::Unit::TestCase
# 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, OpenBSD and Solaris also denies it.
- if /freebsd|netbsd|openbsd|solaris/ !~ RUBY_PLATFORM
+ # NetBSD, OpenBSD, Solaris, and AIX also deny it.
+ if /freebsd|netbsd|openbsd|solaris|aix/ !~ RUBY_PLATFORM
chmod "u+t,o+t", 'tmp/a'
assert_filemode 07500, 'tmp/a'
chmod "a-t,a-s", 'tmp/a'