Sha256: fea50d1c568650f715ca014b61fc38df782f68d3aedc1ef1696d1e891c6c12f5
Contents?: true
Size: 749 Bytes
Versions: 5
Compression:
Stored size: 749 Bytes
Contents
#!/usr/bin/env ruby # Test passing a particular struct array through a variant # https://trac.luon.net/ruby-dbus/ticket/27 require "dbus" session_bus = DBus::SessionBus.instance 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
5 entries across 5 versions & 3 rubygems