summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-06-28 14:10:59 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-06-28 14:10:59 +0100
commit045480c0831b09c91452089b4e5d548b86dc6f5f (patch)
tree922a4a40b6818c5ab382911adccf6de9e4f3a228 /tests
parentcddbdb6914c926bc266bc4e54716c0102e4b7842 (diff)
gsignal: Handle signal names containing underscores
It is perfectly valid to specify a signal name with hyphens or with underscores, so support both in the checker.
Diffstat (limited to 'tests')
-rw-r--r--tests/gsignal-connect.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/gsignal-connect.c b/tests/gsignal-connect.c
index 5583740..bf953f7 100644
--- a/tests/gsignal-connect.c
+++ b/tests/gsignal-connect.c
@@ -357,3 +357,13 @@
G_CALLBACK (dbus_connection_closed_cb),
self, 0);
}
+
+/*
+ * No error
+ */
+{
+ // Connecting to a signal with underscores in its name.
+ GDBusObject *obj = g_malloc (5); // only checking the type
+ g_signal_connect (obj, "interface_added",
+ (GCallback) dbus_object_interface_added_cb, NULL);
+}