From 0366385618ccc26789fdf3a9cc35ee038de071f6 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 8 Apr 2003 22:07:09 +0000 Subject: 2003-04-08 Havoc Pennington * test/data/invalid-messages/array-with-mixed-types.message: regression test that fails for the moment * dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): reorder tests for convenience * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): don't allow array of nil, it broke things. * test/data/invalid-messages/array-of-nil.message: regression test * test/data/valid-messages/array-of-array-of-uint32.message: happened to write this so added it to suite --- dbus/dbus-test.c | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'dbus/dbus-test.c') diff --git a/dbus/dbus-test.c b/dbus/dbus-test.c index 2d1b5477..f7d1c4ef 100644 --- a/dbus/dbus-test.c +++ b/dbus/dbus-test.c @@ -100,32 +100,6 @@ dbus_internal_do_not_use_run_tests (const char *test_data_dir) check_memleaks (); - printf ("%s: running keyring tests\n", "dbus-test"); - if (!_dbus_keyring_test ()) - die ("keyring"); - - check_memleaks (); - -#if 0 - printf ("%s: running md5 tests\n", "dbus-test"); - if (!_dbus_md5_test ()) - die ("md5"); - - check_memleaks (); -#endif - - printf ("%s: running SHA-1 tests\n", "dbus-test"); - if (!_dbus_sha_test (test_data_dir)) - die ("SHA-1"); - - check_memleaks (); - - printf ("%s: running auth tests\n", "dbus-test"); - if (!_dbus_auth_test (test_data_dir)) - die ("auth"); - - check_memleaks (); - printf ("%s: running address parse tests\n", "dbus-test"); if (!_dbus_address_test ()) die ("address parsing"); @@ -162,6 +136,32 @@ dbus_internal_do_not_use_run_tests (const char *test_data_dir) check_memleaks (); + printf ("%s: running keyring tests\n", "dbus-test"); + if (!_dbus_keyring_test ()) + die ("keyring"); + + check_memleaks (); + +#if 0 + printf ("%s: running md5 tests\n", "dbus-test"); + if (!_dbus_md5_test ()) + die ("md5"); + + check_memleaks (); +#endif + + printf ("%s: running SHA-1 tests\n", "dbus-test"); + if (!_dbus_sha_test (test_data_dir)) + die ("SHA-1"); + + check_memleaks (); + + printf ("%s: running auth tests\n", "dbus-test"); + if (!_dbus_auth_test (test_data_dir)) + die ("auth"); + + check_memleaks (); + printf ("%s: completed successfully\n", "dbus-test"); #else printf ("Not compiled with unit tests, not running any\n"); -- cgit