mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-02 05:43:07 +02: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);
|
write (fd, "a", 1);
|
||||||
g_assert_no_errno (g_fsync (fd));
|
g_assert_no_errno (g_fsync (fd));
|
||||||
close (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 ())
|
if (g_test_undefined ())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user