Created
December 8, 2010 18:31
-
-
Save hwatkins/733679 to your computer and use it in GitHub Desktop.
Test case for Broken pipe in ruby libvirt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "libvirt" | |
def nested | |
puts "nested" | |
h = Libvirt.connect | |
h.domains.each do |d| | |
puts "Domain: #{d.name}" | |
end | |
end | |
1.upto(20).each do |x| | |
puts "main #{x}" | |
h = Libvirt.connect | |
h.domains.each do |d| | |
puts "Domain: #{d.name}" | |
puts | |
end | |
nested | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment