summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-10-02 08:43:33 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-10-02 08:43:33 +0900
commitc881678cd75432f47903a5d1d8b86a7a723cb023 (patch)
tree5f641c2fd52780911a65482f80da5ca5fca54c19 /spec/ruby/core/file
parentc827cacde155c7b0a2d5e632c983cb38049f68e2 (diff)
Removed meaningless system dependent tests
As [Bug #16662] lchmod available in linux since glibc 2.31.9000, a system call may exist or not exist depending on the version. It is not a spec nor responsibility of Ruby.
Diffstat (limited to 'spec/ruby/core/file')
-rw-r--r--spec/ruby/core/file/lchmod_spec.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/ruby/core/file/lchmod_spec.rb b/spec/ruby/core/file/lchmod_spec.rb
index 4abe42526d..7420b95e4a 100644
--- a/spec/ruby/core/file/lchmod_spec.rb
+++ b/spec/ruby/core/file/lchmod_spec.rb
@@ -29,22 +29,4 @@ describe "File.lchmod" do
File.stat(@lname).should.writable?
end
end
-
- platform_is :openbsd, :aix do
- it "returns false from #respond_to?" do
- File.respond_to?(:lchmod).should be_false
- end
-
- it "raises a NotImplementedError when called" do
- -> { File.lchmod 0, "foo" }.should raise_error(NotImplementedError)
- end
- end
-
- platform_is :linux do
- it "raises a NotImplementedError or Errno::ENOTSUP when called" do
- -> { File.lchmod 0, "foo" }.should raise_error(Exception) { |e|
- [NotImplementedError, Errno::ENOTSUP].should include(e.class)
- }
- end
- end
end