[gupnp/gupnp-1.4] tests: Add test for gitlab issue #42
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/gupnp-1.4] tests: Add test for gitlab issue #42
- Date: Sun, 2 Jan 2022 20:48:43 +0000 (UTC)
commit d1fc08f9665510cda54e43243eb4b065a4482ab7
Author: Jens Georg <mail jensge org>
Date: Sun Jan 2 21:46:54 2022 +0100
tests: Add test for gitlab issue #42
tests/test-bugs.c | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
---
diff --git a/tests/test-bugs.c b/tests/test-bugs.c
index 42ec5da..9c514c5 100644
--- a/tests/test-bugs.c
+++ b/tests/test-bugs.c
@@ -660,6 +660,33 @@ test_ggo_58 ()
g_main_loop_unref (data.loop);
}
+void
+test_ggo_42 ()
+{
+ GUPnPContext *context = NULL;
+ GError *error = NULL;
+ GUPnPRootDevice *rd;
+ GUPnPServiceInfo *info = NULL;
+
+ context = create_context (0, &error);
+ g_assert_no_error (error);
+ g_assert (context != NULL);
+
+ rd = gupnp_root_device_new (context,
+ "TestDevice.xml",
+ DATA_PATH,
+ &error);
+ g_assert_no_error (error);
+ g_assert (rd != NULL);
+ gupnp_root_device_set_available (rd, TRUE);
+ info = gupnp_device_info_get_service (
+ GUPNP_DEVICE_INFO (rd),
+ "urn:test-gupnp-org:service:TestService:1");
+
+ g_object_unref (rd);
+ g_object_unref (info);
+}
+
int
main (int argc, char *argv[]) {
g_test_init (&argc, &argv, NULL);
@@ -670,6 +697,7 @@ main (int argc, char *argv[]) {
g_test_add_func ("/bugs/bgo/743233", test_bgo_743233);
g_test_add_func ("/bugs/ggo/24", test_ggo_24);
g_test_add_func ("/bugs/ggo/58", test_ggo_58);
+ g_test_add_func ("/bugs/ggo/42", test_ggo_42);
return g_test_run ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]