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

This commit is contained in:
Marco Trevisan (Treviño) 2022-07-06 17:28:31 +02:00
parent b61cd872f1
commit 8c5dac1eb2

View File

@ -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);