If non-root with CAP_DAC_OVERRIDE: test_stdio_wrappers: assertion failed (errno == EACCES): (2 == 13)
On !1339 (merged), mcatanzaro writes:
I've given up on trying to merge this. We'll have to try again when CI is in better shape. I've rerun the CI as many times as I care to; it's basically always failing on unrelated tests.
One of those unrelated test failures in job #583337 is this:
19/270 glib:glib / fileutils FAIL 0.24 s (killed by signal 6 SIGABRT)
--- command ---
G_DEBUG='gc-friendly' G_TEST_BUILDDIR='/builds/GNOME/glib/_build/glib/tests' G_TEST_SRCDIR='/builds/GNOME/glib/glib/tests' MALLOC_PERTURB_='115' MALLOC_CHECK_='2' /builds/GNOME/glib/_build/glib/tests/fileutils
--- stdout ---
# random seed: R02Se42224550ba82bdf535e7d807192beeb
1..17
# Start of fileutils tests
ok 1 /fileutils/build-path
ok 2 /fileutils/build-pathv
ok 3 /fileutils/build-filename
ok 4 /fileutils/build-filenamev
ok 5 /fileutils/mkdir-with-parents
ok 6 /fileutils/mkdir-with-parents-permission # SKIP have CAP_DAC_OVERRIDE or equivalent, cannot test
ok 7 /fileutils/format-size-for-display
ok 8 /fileutils/errors
ok 9 /fileutils/basename
ok 10 /fileutils/dir-make-tmp
ok 11 /fileutils/file-open-tmp
ok 12 /fileutils/mkstemp
ok 13 /fileutils/mkdtemp
ok 14 /fileutils/set-contents
ok 15 /fileutils/read-link
Bail out! GLib:ERROR:../glib/tests/fileutils.c:980:test_stdio_wrappers: assertion failed (errno == EACCES): (2 == 13)
--- stderr ---
**
GLib:ERROR:../glib/tests/fileutils.c:980:test_stdio_wrappers: assertion failed (errno == EACCES): (2 == 13)
-------
errno 2 is ENOENT, so this test was expecting EACCES and got ENOENT instead.
Edited by Simon McVittie