[telepathy-glib-0.24] telepathy-glib: test: make test-cm accepted with newer GLib

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Aug 2 15:48:36 UTC 2024


Module: telepathy-glib
Branch: telepathy-glib-0.24
Commit: 1681c91d5e3058edc6757254ebffc353765fcd0b
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=1681c91d5e3058edc6757254ebffc353765fcd0b

Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date:   Mon Sep  4 17:56:15 2023 +0900

test: make test-cm accepted with newer GLib

With GLib 2.77.3, the key value "foo\;bar" is no longer accepted
with g_key_file_get_string and it returns null string result.

Modify key value in test file to get it accepted by new GLib.

(cherry picked from commit aa858698d7ede76b3b4c825ca14b8061c24f14e1)

---

 tests/dbus/telepathy/managers/test_manager_file.manager | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/dbus/telepathy/managers/test_manager_file.manager b/tests/dbus/telepathy/managers/test_manager_file.manager
index 426ad4a7e..bdb3f90f1 100644
--- a/tests/dbus/telepathy/managers/test_manager_file.manager
+++ b/tests/dbus/telepathy/managers/test_manager_file.manager
@@ -79,11 +79,9 @@ default-triply-escaped-semicolon-in-list = list\\\;of;misc;
 param-empty-list = as
 default-empty-list =
 
-# this is probably technically a Desktop Entry spec violation?
-# we should be permissive, interpreting this as either "foo\;bar" or "foo;bar"
-# seems reasonable
+# the value is "foo\\;bar"
 param-escaped-semicolon = s
-default-escaped-semicolon = foo\;bar
+default-escaped-semicolon = foo\\;bar
 
 # all the other types
 param-object = o



More information about the telepathy-commits mailing list