From e3bf6b879e075d18fcc5af41159a1e2b2c347dd4 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 5 Mar 2023 20:42:12 +0100 Subject: [PATCH] timespec_get tests: Add comment. * tests/test-timespec_get.c: Add a comment regarding a glibc bug. --- ChangeLog | 5 +++++ tests/test-timespec_get.c | 2 ++ 2 files changed, 7 insertions(+) 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); -- 2.39.5