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.
This commit is contained in:
Nobuyoshi Nakada 2020-10-02 08:43:33 +09:00
Родитель c827cacde1
Коммит c881678cd7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7CD2805BFA3770C6
1 изменённых файлов: 0 добавлений и 18 удалений

Просмотреть файл

@ -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