ruby-changes:47436
From: usa <ko1@a...>
Date: Wed, 9 Aug 2017 21:30:27 +0900 (JST)
Subject: [ruby-changes:47436] usa:r59552 (ruby_2_3): * test/ruby/test_process.rb (test_rlimit_{name, value}): test in UTF-8
usa 2017-08-09 21:30:12 +0900 (Wed, 09 Aug 2017) New Revision: 59552 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59552 Log: * test/ruby/test_process.rb (test_rlimit_{name,value}): test in UTF-8 encoding. fix test failures introduced at r59531 on some platforms. Modified files: branches/ruby_2_3/ChangeLog branches/ruby_2_3/test/ruby/test_process.rb branches/ruby_2_3/version.h Index: ruby_2_3/test/ruby/test_process.rb =================================================================== --- ruby_2_3/test/ruby/test_process.rb (revision 59551) +++ ruby_2_3/test/ruby/test_process.rb (revision 59552) @@ -121,15 +121,19 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/ruby/test_process.rb#L121 } assert_raise(ArgumentError) { Process.getrlimit(:FOO) } assert_raise(ArgumentError) { Process.getrlimit("FOO") } - assert_raise_with_message(ArgumentError, /\u{30eb 30d3 30fc}/) { Process.getrlimit("\u{30eb 30d3 30fc}") } + EnvUtil.with_default_internal(Encoding::UTF_8) do + assert_raise_with_message(ArgumentError, /\u{30eb 30d3 30fc}/) { Process.getrlimit("\u{30eb 30d3 30fc}") } + end end def test_rlimit_value return unless rlimit_exist? assert_raise(ArgumentError) { Process.setrlimit(:FOO, 0) } assert_raise(ArgumentError) { Process.setrlimit(:CORE, :FOO) } - assert_raise_with_message(ArgumentError, /\u{30eb 30d3 30fc}/) { Process.setrlimit("\u{30eb 30d3 30fc}", 0) } - assert_raise_with_message(ArgumentError, /\u{30eb 30d3 30fc}/) { Process.setrlimit(:CORE, "\u{30eb 30d3 30fc}") } + EnvUtil.with_default_internal(Encoding::UTF_8) do + assert_raise_with_message(ArgumentError, /\u{30eb 30d3 30fc}/) { Process.setrlimit("\u{30eb 30d3 30fc}", 0) } + assert_raise_with_message(ArgumentError, /\u{30eb 30d3 30fc}/) { Process.setrlimit(:CORE, "\u{30eb 30d3 30fc}") } + end with_tmpchdir do s = run_in_child(<<-'End') cur, max = Process.getrlimit(:NOFILE) Index: ruby_2_3/version.h =================================================================== --- ruby_2_3/version.h (revision 59551) +++ ruby_2_3/version.h (revision 59552) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1 #define RUBY_VERSION "2.3.5" #define RUBY_RELEASE_DATE "2017-08-09" -#define RUBY_PATCHLEVEL 361 +#define RUBY_PATCHLEVEL 362 #define RUBY_RELEASE_YEAR 2017 #define RUBY_RELEASE_MONTH 8 Index: ruby_2_3/ChangeLog =================================================================== --- ruby_2_3/ChangeLog (revision 59551) +++ ruby_2_3/ChangeLog (revision 59552) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1 +Wed Aug 9 21:28:34 2017 NAKAMURA Usaku <usa@r...> + + * test/ruby/test_process.rb (test_rlimit_{name,value}): test in UTF-8 + encoding. fix test failures introduced at r59531 on some platforms. + Wed Aug 9 21:16:22 2017 Nobuyoshi Nakada <nobu@r...> * marshal.c (rb_marshal_dump_limited): do not free dump_arg, which -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/