From 8c5dac1eb225325498a8c054cf1ef004885926a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 6 Jul 2022 17:28:31 +0200 Subject: [PATCH] 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 2f38a3282..247bcef1c 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);