[glib: 5/6] glib/tests/fileutils: use g_assert_no_errno instead of manual checking




commit 8c5dac1eb225325498a8c054cf1ef004885926a5
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Jul 6 17:28:31 2022 +0200

    glib/tests/fileutils: use g_assert_no_errno instead of manual checking

 glib/tests/fileutils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c
index 2f38a32822..247bcef1cf 100644
--- a/glib/tests/fileutils.c
+++ b/glib/tests/fileutils.c
@@ -1895,8 +1895,8 @@ test_read_link (void)
   g_assert_nonnull (file);
   fclose (file);
 
-  g_assert_cmpint (symlink (filename, link1), ==, 0);
-  g_assert_cmpint (symlink (link1, link2), ==, 0);
+  g_assert_no_errno (symlink (filename, link1));
+  g_assert_no_errno (symlink (link1, link2));
 
   error = NULL;
   data = g_file_read_link (link1, &error);


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