[前][次][番号順一覧][スレッド一覧]

ruby-changes:62942

From: Nobuyoshi <ko1@a...>
Date: Mon, 14 Sep 2020 18:28:39 +0900 (JST)
Subject: [ruby-changes:62942] df1c035d03 (master): [ruby/tmpdir] Test "not writable" case

https://git.ruby-lang.org/ruby.git/commit/?id=df1c035d03

From df1c035d0381e41a78ebc55b0450bab39b542cf2 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 13 Jul 2020 21:39:32 +0900
Subject: [ruby/tmpdir] Test "not writable" case

https://github.com/ruby/tmpdir/commit/84684d80f9

diff --git a/test/test_tmpdir.rb b/test/test_tmpdir.rb
index 45342c4..7cee2e1 100644
--- a/test/test_tmpdir.rb
+++ b/test/test_tmpdir.rb
@@ -27,6 +27,8 @@ class TestTmpdir < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_tmpdir.rb#L27
           File.unlink(tmpdirx)
           ENV[e] = tmpdir
           assert_equal(tmpdir, Dir.tmpdir)
+          File.chmod(0555, tmpdir)
+          assert_not_equal(tmpdir, Dir.tmpdir)
           File.chmod(0777, tmpdir)
           assert_not_equal(tmpdir, Dir.tmpdir)
           newdir = Dir.mktmpdir("d", tmpdir) do |dir|
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]