about summary refs log tree commit diff
path: root/src/tests/test-core-with-expect.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2019-09-11 11:03:28 +0200
committerSebastien Bacher <seb128@ubuntu.com>2019-09-11 11:13:03 +0200
commit60c86828b7d3858e130084a27e260eb20551a473 (patch)
tree97d918df94a697e939150e89023ae686759e79ce /src/tests/test-core-with-expect.c
parentd39df457c7618ace1e1daefb8bb41d23676e1dcd (diff)
parent857b32ce16c33d2fb191da77e9a3f3b542714d74 (diff)
Merge remote-tracking branch 'salsa/master'
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 ();
 }
-