From 8e99842d0316bffb2625fd289e5458f3748c0b4b Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 28 Aug 2014 12:01:43 +0000 Subject: test_io.rb: non UTF-8 pattern * test/ruby/test_io.rb: (test_invalid_advise): fix pattern for non UTF-8 environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index f056c760a8..5f5a21b3cb 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2479,7 +2479,7 @@ End %W{Normal rand glark will_need zzzzzzzzzzzz \u2609}.map(&:to_sym).each do |adv| [[0,0], [0, 20], [400, 2]].each do |offset, len| open(tf.path) do |t| - assert_raise_with_message(NotImplementedError, /#{adv.inspect}/, feature4204) { t.advise(adv, offset, len) } + assert_raise_with_message(NotImplementedError, /#{Regexp.quote(adv.inspect)}/, feature4204) { t.advise(adv, offset, len) } end end end -- cgit v1.2.3