ruby: Add binding for guestfs_event_to_string.

This commit is contained in:
Richard W.M. Jones
2013-02-19 12:59:23 +00:00
parent 0f849029d1
commit 70514c7f7e
2 changed files with 31 additions and 1 deletions

View File

@@ -28,7 +28,8 @@ class TestLoad < Test::Unit::TestCase
if event == Guestfs::EVENT_APPLIANCE
buf.chomp!
end
puts "ruby event logged: event=#{event} eh=#{event_handle} buf='#{buf}' array=#{array}"
event_string = Guestfs::event_to_string(event)
puts "ruby event logged: event=#{event_string} eh=#{event_handle} buf='#{buf}' array=#{array}"
}
close_invoked = 0