From e97cc464605a5d6c9417bb449f27b36ceeb3e840 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 31 Jan 2018 04:02:17 +0000 Subject: trick ruby-mode.el by heredocs git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/ruby/test_process.rb') diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 5eaf9162c7..57bfd78f7c 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -246,11 +246,14 @@ class TestProcess < Test::Unit::TestCase assert_raise(ArgumentError) do system(RUBY, '-e', 'exit', 'rlimit_bogus'.to_sym => 123) end - assert_separately([],<<-"end;") # [ruby-core:82033] [Bug #13744] + assert_separately([],"#{<<-"begin;"}\n#{<<~'end;'}") + BUG = "[ruby-core:82033] [Bug #13744]" + RUBY = "#{RUBY}" + begin; assert(system("#{RUBY}", "-e", "exit([3600,3600] == Process.getrlimit(:CPU))", - 'rlimit_cpu'.to_sym => 3600)) - assert_raise(ArgumentError) do + 'rlimit_cpu'.to_sym => 3600), BUG) + assert_raise(ArgumentError, BUG) do system("#{RUBY}", '-e', 'exit', :rlimit_bogus => 123) end end; -- cgit v1.2.3