diff options
author | Havoc Pennington <hp@redhat.com> | 2003-02-13 00:08:18 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-02-13 00:08:18 +0000 |
commit | 3791dcca16cb46b0ff7305beff75d1aa2645940c (patch) | |
tree | 2c758acd5d023a51baaad74fa539910123cdcd84 /dbus/dbus-auth.c | |
parent | 63e779e41ca09007af789fff90011860dc69f937 (diff) |
2003-02-10 Havoc Pennington <hp@pobox.com>
* dbus/dbus-auth-script.c, dbus/dbus-auth-script.h: sync
initial cut at test framework for DBusAuth from laptop.
Doesn't quite work yet but it compiles and I need to get
it off the 266mhz laptop. ;-)
* dbus/dbus-server-debug.c (_dbus_server_debug_accept_transport):
fix a memleak in error case
Diffstat (limited to 'dbus/dbus-auth.c')
-rw-r--r-- | dbus/dbus-auth.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/dbus/dbus-auth.c b/dbus/dbus-auth.c index 55b2c9b5..697723b1 100644 --- a/dbus/dbus-auth.c +++ b/dbus/dbus-auth.c @@ -1301,7 +1301,7 @@ _dbus_auth_do_work (DBusAuth *auth) auth->needed_memory = FALSE; /* Max amount we'll buffer up before deciding someone's on crack */ -#define MAX_BUFFER (16 * 1024) +#define MAX_BUFFER (16 * _DBUS_ONE_KILOBYTE) do { @@ -1592,5 +1592,18 @@ _dbus_auth_get_identity (DBusAuth *auth, } } - /** @} */ + +#ifdef DBUS_BUILD_TESTS +#include "dbus-test.h" +#include <stdio.h> + +dbus_bool_t +_dbus_auth_test (const char *test_data_dir) +{ + + + return TRUE; +} + +#endif /* DBUS_BUILD_TESTS */ |