From 2ded8d0698667692ce5d9ca2bbc6108ed1125235 Mon Sep 17 00:00:00 2001 From: hsbt Date: Thu, 27 Aug 2015 09:05:48 +0000 Subject: * lib/webrick/server.rb: use IO::NULL instead of '/dev/null' * test/ruby/test_string.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_string.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 2768a65441..fba8d51b35 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -464,8 +464,7 @@ class TestString < Test::Unit::TestCase end end - null = File.exist?("/dev/null") ? "/dev/null" : "NUL" # maybe DOSISH - assert_equal("", File.read(null).clone, '[ruby-dev:32819] reported by Kazuhiro NISHIYAMA') + assert_equal("", File.read(IO::NULL).clone, '[ruby-dev:32819] reported by Kazuhiro NISHIYAMA') end def test_concat -- cgit v1.2.3