]> Savannah Git Hosting - gnulib.git/commitdiff
timespec_get tests: Add comment.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Mar 2023 19:42:12 +0000 (20:42 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Mar 2023 19:42:12 +0000 (20:42 +0100)
* tests/test-timespec_get.c: Add a comment regarding a glibc bug.

ChangeLog
tests/test-timespec_get.c

index 5076ac68ee31b05e97b7dbf7aa39a6be67da57b8..51591371ea38506c467cc0dd4b670aaaf2a34b9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-03-05  Bruno Haible  <bruno@clisp.org>
+
+       timespec_get tests: Add comment.
+       * tests/test-timespec_get.c: Add a comment regarding a glibc bug.
+
 2023-03-02  Bruno Haible  <bruno@clisp.org>
 
        nl_langinfo tests: Avoid test failure on Solaris 11.
index 1b20fe23c0a5a961a38f5aaa0f42025abbb2146c..69b98c5c64c43f8c790658c3e29e9d742af77532 100644 (file)
@@ -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);