> In a CI run of libunistring (on GitHub), I see a test failure:
> 
>   ../../tests/test-usleep.c:35: assertion 'start < time (NULL)' failed
>   FAIL test-usleep.exe (exit status: 134)

I'm seeing this test failure again. It's time to disable the test on Cygwin.


2024-06-08  Bruno Haible  <br...@clisp.org>

        usleep tests: Avoid failure due to known Cygwin 3.5.3 bug.
        * modules/usleep-tests (Depends-on): Add test-xfail.
        (Makefile.am): Don't test test-usleep on Cygwin.

diff --git a/modules/usleep-tests b/modules/usleep-tests
index 531c685eb5..f77ee418a9 100644
--- a/modules/usleep-tests
+++ b/modules/usleep-tests
@@ -5,9 +5,12 @@ tests/macros.h
 
 Depends-on:
 time-h
+test-xfail
 
 configure.ac:
 
 Makefile.am:
+if !OS_IS_CYGWIN
 TESTS += test-usleep
+endif
 check_PROGRAMS += test-usleep




Reply via email to