summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-string.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-05-05 03:13:35 +0000
committerHavoc Pennington <hp@redhat.com>2003-05-05 03:13:35 +0000
commitd1c7eefb66483c3ea4d9e7fb6dca23dcfac8cad5 (patch)
treed012f30757e2319ff1862f51d406291506be5b55 /dbus/dbus-string.c
parent3d0dcbf536601e39d3d5125ed29f5afa217c9bf6 (diff)
2003-05-04 Havoc Pennington <hp@pobox.com>
* dbus/dbus-message-handler.c (_dbus_message_handler_test): add unit test * dbus/dbus-marshal.c (_dbus_demarshal_string_array): fix this function, which assumed length was in # of strings, not bytes * dbus/dbus-message.c (_dbus_message_test): add tests for some missing coverage * dbus/dbus-connection.c (_dbus_connection_queue_received_message): disable function for now, we are only using it in test mode * dbus/dbus-message.c (_dbus_message_loader_queue_messages): remove a mistaken FIXME
Diffstat (limited to 'dbus/dbus-string.c')
-rw-r--r--dbus/dbus-string.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbus/dbus-string.c b/dbus/dbus-string.c
index 8abc74ac..65d2fb1b 100644
--- a/dbus/dbus-string.c
+++ b/dbus/dbus-string.c
@@ -301,6 +301,10 @@ _dbus_string_free (DBusString *str)
real->invalid = TRUE;
}
+#ifdef DBUS_BUILD_TESTS
+/* Not using this feature at the moment,
+ * so marked DBUS_BUILD_TESTS-only
+ */
/**
* Locks a string such that any attempts to change the string will
* result in aborting the program. Also, if the string is wasting a
@@ -338,6 +342,7 @@ _dbus_string_lock (DBusString *str)
}
}
}
+#endif /* DBUS_BUILD_TESTS */
static dbus_bool_t
set_length (DBusRealString *real,