Permalink
Browse files

Handle noisy 1.9.3 GC in wirble compatibility specs.

  • Loading branch information...
1 parent a7b2985 commit 15ab224b672818901d0d6ac6d1f5b679755e028f @oggy committed Sep 5, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 spec/wirble_compatibility_spec.rb
@@ -21,6 +21,8 @@ def init_irb_with(code)
io.close_write
io.read
end
+ # Ruby 1.9.3 prints gc parameters if configured
+ nil while output.gsub!(/^(?:malloc_limit|heap_min_slots|free_min)=.*\n/, '')
# Ruby 1.9.2 prints an extra newline on exit.
output.chomp! if RUBY_VERSION >= '1.9.2'
output

0 comments on commit 15ab224

Please sign in to comment.