about summary refs log tree commit diff
path: root/src/tests/test-core-with-expect.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2019-09-06 09:26:09 +0200
committerMichael Biebl <biebl@debian.org>2019-09-06 09:26:09 +0200
commit473dd863356491d7b984baef9c72e886c774a451 (patch)
treef7863ed06a67003b8a362e1146a1dff22ea16c55 /src/tests/test-core-with-expect.c
parentdf49315721969c1013256ce92c6a0f825450f814 (diff)
parent555dfa331e295a3a687a7cc6870e1349ffed8f26 (diff)
Update upstream source from tag 'upstream/1.20.2'
Update to upstream version '1.20.2'
with Debian dir 0356038b3aea3f0577988e0b1019b86c657592cd
Diffstat (limited to 'src/tests/test-core-with-expect.c')
-rw-r--r--src/tests/test-core-with-expect.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/test-core-with-expect.c b/src/tests/test-core-with-expect.c
index d38025ec..2d111a41 100644
--- a/src/tests/test-core-with-expect.c
+++ b/src/tests/test-core-with-expect.c
@@ -118,13 +118,13 @@ test_nm_utils_kill_child_async_do (const char *name, pid_t pid, int sig, guint32
 	timeout_id = g_timeout_add_seconds (5, test_nm_utils_kill_child_async_fail_cb, &data);
 
 	data.loop = g_main_loop_new (NULL, FALSE);
-	g_main_run (data.loop);
+	g_main_loop_run (data.loop);
 
 	g_assert (data.called);
 	success = g_source_remove (timeout_id);
 	g_assert (success);
 
-	g_main_destroy (data.loop);
+	g_main_loop_unref (data.loop);
 }
 
 static void
@@ -578,4 +578,3 @@ main (int argc, char **argv)
 
 	return g_test_run ();
 }
-