diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-27 09:05:48 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-27 09:05:48 +0000 |
commit | 2ded8d0698667692ce5d9ca2bbc6108ed1125235 (patch) | |
tree | 94bda1780c64add126429c429f5f165e233e2af8 /test | |
parent | a20929cb723088b14e7498ced867a93e32072885 (diff) | |
download | ruby-2ded8d0698667692ce5d9ca2bbc6108ed1125235.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_string.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 |