mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_io.rb: squiggly heredoc
* test/ruby/test_io.rb (test_threaded_flush): use squiggly here document to strip leading spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
32a75a9c1b
commit
93824a5f73
1 changed files with 3 additions and 2 deletions
|
@ -2527,11 +2527,12 @@ __END__
|
|||
|
||||
def test_threaded_flush
|
||||
bug3585 = '[ruby-core:31348]'
|
||||
src = %q{\
|
||||
src = "#{<<~"begin;"}\n#{<<~'end;'}"
|
||||
begin;
|
||||
t = Thread.new { sleep 3 }
|
||||
Thread.new {sleep 1; t.kill; p 'hi!'}
|
||||
t.join
|
||||
}.gsub(/^\s+/, '')
|
||||
end;
|
||||
10.times.map do
|
||||
Thread.start do
|
||||
assert_in_out_err([], src) {|stdout, stderr|
|
||||
|
|
Loading…
Reference in a new issue