From fddbc09c4a9125fcb168fb31ff300d4132919ea6 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Thu, 27 Jan 2005 23:39:26 +0000 Subject: 2005-01-27 Havoc Pennington * dbus/dbus-message.c: byteswap the message if you init an iterator to read/write from it * dbus/dbus-marshal-byteswap.c: new file implementing _dbus_marshal_byteswap() * dbus/dbus-marshal-basic.c: add _dbus_swap_array() --- dbus/dbus-test.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dbus/dbus-test.c') diff --git a/dbus/dbus-test.c b/dbus/dbus-test.c index 5f51832c..eb2b8787 100644 --- a/dbus/dbus-test.c +++ b/dbus/dbus-test.c @@ -128,6 +128,12 @@ dbus_internal_do_not_use_run_tests (const char *test_data_dir) _dbus_warn ("recursive marshal tests disabled\n"); #endif + printf ("%s: running byteswap tests\n", "dbus-test"); + if (!_dbus_marshal_byteswap_test ()) + die ("byteswap marshaled data"); + + check_memleaks (); + printf ("%s: running memory tests\n", "dbus-test"); if (!_dbus_memory_test ()) die ("memory"); -- cgit