/gdbus/message-serialize-invalid test: be compatible with D-Bus 1.4.8
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 31 Mar 2011 12:58:55 +0000 (13:58 +0100)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 15 Apr 2011 10:00:16 +0000 (06:00 -0400)
commitc2387ddff164becd90654b459d8c6031c3656577
tree5f90995259fa7e08ac1b4d9653c3a1e515404792
parent8b50e2f5475f9817baa358e2f638d0853e50ffb1
/gdbus/message-serialize-invalid test: be compatible with D-Bus 1.4.8

Older versions of libdbus would let you construct an invalid
DBusMessage, but that's a bug, which will be fixed in 1.4.8/1.5.0.
Instead, construct a valid message of the same length, then replace
substrings in the serialized blob with their invalid counterparts.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=646326

Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/tests/gdbus-serialization.c