]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
* dbus/dbus-address.c (_dbus_address_test): Revert leaking strcmp.
authorJohn (J5) Palmieri <johnp@redhat.com>
Thu, 10 Aug 2006 23:03:29 +0000 (23:03 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Thu, 10 Aug 2006 23:03:29 +0000 (23:03 +0000)
  In any case it was wrong since this is a test checking to see if
  address parsing is correct.  There was no need to get the true
  tmp directory.

ChangeLog
dbus/dbus-address.c

index 1ba4c55b7bb4224539c094ad720413a2538fa799..893c29608c52249181b6a90a9e697290039b6683 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-08-10  John (J5) Palmieri  <johnp@redhat.com>
+
+       * dbus/dbus-address.c (_dbus_address_test): Revert leaking strcmp.  
+       In any case it was wrong since this is a test checking to see if
+       address parsing is correct.  There was no need to get the true
+       tmp directory.  
+
 2006-08-10  John (J5) Palmieri  <johnp@redhat.com>
 
        * dbus/dbus-macros.h: Revert the addition of stddef.h
index ae9acfee7a29692d08d5bb06e2be3cfd32b6caff..dfedcb09089df2c59a8f28ad381f2178cedfc54b 100644 (file)
@@ -715,7 +715,7 @@ _dbus_address_test (void)
                           &entries, &len, &error))
     _dbus_assert_not_reached ("could not parse address");
   _dbus_assert (len == 2);
-  _dbus_assert (strcmp (dbus_address_entry_get_value (entries[0], "path"), strcat(_dbus_get_tmpdir(),"/foo") == 0));
+  _dbus_assert (strcmp (dbus_address_entry_get_value (entries[0], "path"), "/tmp/foo") == 0));
   _dbus_assert (strcmp (dbus_address_entry_get_value (entries[1], "name"), "test") == 0);
   _dbus_assert (strcmp (dbus_address_entry_get_value (entries[1], "sliff"), "sloff") == 0);