Sha256: 91186a32beb4b241c053778eaa1d5de8c950a84c17b1f8e35e6542c5bcbab562
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
#!/usr/bin/env ruby # Test passing a particular struct array through a variant # https://trac.luon.net/ruby-dbus/ticket/27 require File.expand_path("../test_helper", __FILE__) require "dbus" session_bus = DBus::ASessionBus.new svc = session_bus.service("org.ruby.service") obj = svc.object("/org/ruby/MyInstance") obj.introspect # necessary obj.default_iface = "org.ruby.SampleInterface" # The bug is probably alignment related so whether it triggers # depends also on the combined length of service, interface, # and method names. Luckily here it works out. triple = ['a(uuu)', []] obj.test_variant(triple) quadruple = ['a(uuuu)', []] # a(uuu) works fine # The bus disconnects us because of malformed message, # code 12: DBUS_INVALID_TOO_MUCH_DATA obj.test_variant(quadruple)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-dbus-0.9.3 | test/t3-ticket27.rb |
ruby-dbus-0.9.2 | test/t3-ticket27.rb |