test config/include_no_permission fails when run as root
I managed to get the gitlab.com CI running using the .gitlab-ci.yml
on master. (There are other issues with that CI configuration; see #23755 (moved) and #23756 (moved).) It fails with
config/include_no_permission:
FAIL src/test/test_config.c:4975: assert(config_get_lines_include(torrc_contents, &result, 0,&include_used) OP_EQ -1): 0 vs -1
[include_no_permission FAILED]
As far as I can tell, this can only happen if opendir()
can succeed on a mode 0100
directory. Maybe this strange thing can happen in the Docker environment that runs gitlab.com CI jobs? I don't know enough about Docker to say how plausible that explanation is.
Edit: This seems to be because the gitlab.com CI runs as root.