[libglnx/wip/smcv/testing-helpers: 3/5] testlib: Be compatible with ancient GLib by using glnx_close_fd




commit 3b12fb6fd099301854e748e4c554f225964cf065
Author: Simon McVittie <smcv collabora com>
Date:   Wed Jul 27 15:24:37 2022 +0100

    testlib: Be compatible with ancient GLib by using glnx_close_fd
    
    Signed-off-by: Simon McVittie <smcv collabora com>

 tests/libglnx-testlib.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/tests/libglnx-testlib.c b/tests/libglnx-testlib.c
index 37b3ece..3eb2ba1 100644
--- a/tests/libglnx-testlib.c
+++ b/tests/libglnx-testlib.c
@@ -67,8 +67,7 @@ _glnx_test_auto_temp_dir_leave (_GLnxTestAutoTempDir *dir)
   glnx_tmpdir_delete (&dir->temp_dir, NULL, &error);
   g_assert_no_error (error);
 
-  g_close (dir->old_cwd_fd, &error);
-  g_assert_no_error (error);
+  glnx_close_fd (&dir->old_cwd_fd);
 
   g_free (dir->old_cwd);
   g_free (dir);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]