mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 09:08:15 +02:00
config-parser: Simplify test for standard session service dirs
There's little point in asserting that the defaults (without setting XDG_DATA_HOME, etc.) end with share/dbus-1/services, because we are about to re-test with known values for XDG_DATA_HOME etc., at which point we can check exact values which is more strict. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99825 Reviewed-by: Philip Withnall <withnall@endlessm.com> Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
81c82d2f34
commit
5476b8fad0
1 changed files with 0 additions and 21 deletions
|
|
@ -3440,27 +3440,6 @@ test_default_session_servicedirs (void)
|
|||
dirs = NULL;
|
||||
|
||||
printf ("Testing retrieving the default session service directories\n");
|
||||
if (!_dbus_get_standard_session_servicedirs (&dirs))
|
||||
_dbus_assert_not_reached ("couldn't get stardard dirs");
|
||||
|
||||
/* make sure our defaults end with share/dbus-1/service */
|
||||
while ((link = _dbus_list_pop_first_link (&dirs)))
|
||||
{
|
||||
DBusString path;
|
||||
|
||||
printf (" default service dir: %s\n", (char *)link->data);
|
||||
_dbus_string_init_const (&path, (char *)link->data);
|
||||
if (!_dbus_string_ends_with_c_str (&path, "dbus-1/services"))
|
||||
{
|
||||
printf ("error with default session service directories\n");
|
||||
dbus_free (link->data);
|
||||
_dbus_list_free_link (link);
|
||||
goto out;
|
||||
}
|
||||
|
||||
dbus_free (link->data);
|
||||
_dbus_list_free_link (link);
|
||||
}
|
||||
|
||||
#ifdef DBUS_UNIX
|
||||
if (!dbus_setenv ("XDG_DATA_HOME", "/testhome/foo/.testlocal/testshare"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue