The tests introduced in https://reviews.freebsd.org/D50486 are failing in FreeBSD CI for 99+ days. See the latest report here at time of writing: https://ci.freebsd.org/job/FreeBSD-main-amd64-test/26612/testReport/ @bnovkov could you triage as necessary?
The proximate cause appears to be that CI runs tests as root, and the callback test relies on being unable to read a directory created with mode 0007, which does not constrain root.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=7fe39bec801a08f541d0111219fe8701a6a20cf1 commit 7fe39bec801a08f541d0111219fe8701a6a20cf1 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2025-06-23 08:44:12 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2025-06-23 08:44:31 +0000 glob: Improve callback tests. Most importantly, they need to run without privileges, since root is allowed to read a directory regardless of its permission bits. PR: 287694 Fixes: 4d7c31bca252 Sponsored by: Klara, Inc. Reviewed by: bnovkov Differential Revision: https://reviews.freebsd.org/D50965 lib/libc/tests/gen/glob2_test.c | 47 +++++++++++++++++++++----------- lib/libc/tests/gen/glob_blocks_test.c | 51 ++++++++++++++++++++++------------- 2 files changed, 63 insertions(+), 35 deletions(-)