On Solaris 11.4, which doesn't have flock() in libc, the test-flock test fails. Whereas on Solaris 11 OmniOS and Solaris 11 OpenIndiana, which have flock() support in the kernel, it succeeds.
Last time I read about locking mechanisms, it convinced me that an flock() on lockf() emulation would not work. [1] [1] https://lists.nongnu.org/archive/html/bug-gnulib/2023-06/msg00054.html [2] https://stackoverflow.com/questions/29611352 Therefore: 2024-05-21 Bruno Haible <br...@clisp.org> flock tests: Mark as expected failure on Solaris 11. * modules/flock-tests (Makefile.am): Expect that test-flock fails with the Gnulib fallback. diff --git a/modules/flock-tests b/modules/flock-tests index ece4b48263..c5cd8f05cd 100644 --- a/modules/flock-tests +++ b/modules/flock-tests @@ -11,3 +11,7 @@ configure.ac: Makefile.am: TESTS += test-flock check_PROGRAMS += test-flock + +if GL_COND_OBJ_FLOCK +XFAIL_TESTS += test-flock +endif