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:
Marc-André Lureau 2022-01-21 15:37:17 +04:00
parent 59b226d272
commit 354c454c56

View File

@ -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 ())
{