glib/tests/fileutils: Fix expectations when running as root

Merged Simon McVittie requested to merge wip/smcv/fileutils-test-as-root into master
  • glib/tests/fileutils: Make more use of g_assert_no_errno()

  • glib/tests/fileutils: Fix expectations when running as root

    This test asserts that g_file_set_contents_full() will fail when used on a read-only file, but processes with CAP_DAC_OVERRIDE on Linux or uid 0 on traditional Unix can and do ignore DAC permissions. See also #2027 (closed), #2028 (closed).

Bug-Debian: https://bugs.debian.org/973271

Edited by Simon McVittie

Merge request reports