mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
tests: fix read-only-file test
The test is meant to check read-only files don't get overwritten, which is 0400 in octal. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
59b226d272
commit
354c454c56
@ -1412,7 +1412,7 @@ test_set_contents_full_read_only_file (void)
|
||||
write (fd, "a", 1);
|
||||
g_assert_no_errno (g_fsync (fd));
|
||||
close (fd);
|
||||
g_assert_no_errno (g_chmod (file_name, 0200));
|
||||
g_assert_no_errno (g_chmod (file_name, 0400)); /* S_IREAD */
|
||||
|
||||
if (g_test_undefined ())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user