diff options
author | Jens Georg <mail@jensge.org> | 2022-01-02 21:46:54 +0100 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2022-01-02 21:48:54 +0100 |
commit | 49af833a638f393901a35b8ccfa35a8626b545e3 (patch) | |
tree | 7a7644cf840682b70d75276632c5f14ebcc0f5f5 /tests | |
parent | b441cb813c751821f1a379d343274b7b90b71da3 (diff) | |
download | gupnp-49af833a638f393901a35b8ccfa35a8626b545e3.tar.gz |
tests: Add test for gitlab issue #42
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-bugs.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/test-bugs.c b/tests/test-bugs.c index 1a1aeb2..19a13b4 100644 --- a/tests/test-bugs.c +++ b/tests/test-bugs.c @@ -659,6 +659,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); @@ -669,6 +696,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 (); } |