From: Bruno Haible Date: Sun, 5 Mar 2023 19:42:12 +0000 (+0100) Subject: timespec_get tests: Add comment. X-Git-Tag: v1.0~1654 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e3bf6b879e075d18fcc5af41159a1e2b2c347dd4;p=gnulib.git timespec_get tests: Add comment. * tests/test-timespec_get.c: Add a comment regarding a glibc bug. --- diff --git a/ChangeLog b/ChangeLog index 5076ac68ee..51591371ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-03-05 Bruno Haible + + timespec_get tests: Add comment. + * tests/test-timespec_get.c: Add a comment regarding a glibc bug. + 2023-03-02 Bruno Haible nl_langinfo tests: Avoid test failure on Solaris 11. diff --git a/tests/test-timespec_get.c b/tests/test-timespec_get.c index 1b20fe23c0..69b98c5c64 100644 --- a/tests/test-timespec_get.c +++ b/tests/test-timespec_get.c @@ -46,6 +46,8 @@ main (void) ASSERT (tt2 <= tt4); /* Verify that the tv_sec field of the result is the same as time(NULL). */ + /* Note: This assertion sometimes fails on glibc systems, see + https://sourceware.org/bugzilla/show_bug.cgi?id=30200 */ ASSERT (ts1.tv_sec <= tt2); ASSERT (tt2 <= ts3.tv_sec); ASSERT (ts3.tv_sec <= tt4);