mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
glib/tests/fileutils: use g_assert_no_errno instead of manual checking
This commit is contained in:
parent
b61cd872f1
commit
8c5dac1eb2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user