summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2023-03-17 13:32:26 +0000
committerSimon McVittie <smcv@collabora.com>2023-03-17 13:32:26 +0000
commit7b02fdfdf8617fea6f0b6d90ee608ee8c88a2fa6 (patch)
treebf422a1360cddfc46118f9df54c4abbf318e828b /tests
parentaecdf62828c8b1ad45ea0a2b1f7359ea2a1498da (diff)
downloadostree-7b02fdfdf8617fea6f0b6d90ee608ee8c88a2fa6.tar.gz
Use g_steal_fd() in preference to glnx_steal_fd()
g_steal_fd() exists in GLib since 2.70, and libglnx has a backport for older GLib versions, equivalent to the libglnx-specific glnx_steal_fd(). Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-repo-finder-mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-repo-finder-mount.c b/tests/test-repo-finder-mount.c
index 3d360182..13797030 100644
--- a/tests/test-repo-finder-mount.c
+++ b/tests/test-repo-finder-mount.c
@@ -166,7 +166,7 @@ assert_create_repos_dir (Fixture *fixture,
g_clear_error (&error);
g_assert_no_error (error);
- *out_repos_dfd = glnx_steal_fd (&repos_dfd);
+ *out_repos_dfd = g_steal_fd (&repos_dfd);
g_autoptr(GFile) mount_root = g_file_get_child (fixture->working_dir, mount_root_name);
*out_mount = G_MOUNT (ostree_mock_mount_new (mount_root_name, mount_root));