summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-01-02 00:14:05 +0100
committerBruno Haible <bruno@clisp.org>2021-01-02 01:15:46 +0100
commit2d4f9d5c5a0c6dbdc2fbe34c42fe9cd74f162af3 (patch)
tree9255e0c00edde8a8bf0ecc90b54a5b5719fa609d /tests
parentbb6ecf3278cce40cfa6be693697e7995dca1a038 (diff)
downloadgnulib-2d4f9d5c5a0c6dbdc2fbe34c42fe9cd74f162af3.tar.gz
time: Define TIME_UTC.
* lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros. * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC. * modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC. * tests/test-time.c: Check that TIME_UTC is defined and a positive integer. * doc/posix-headers/time.texi: Mention TIME_UTC.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-time.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-time.c b/tests/test-time.c
index a3a327624e..e5a45227b7 100644
--- a/tests/test-time.c
+++ b/tests/test-time.c
@@ -34,6 +34,10 @@ pid_t t2;
per POSIX 2008. */
verify (sizeof NULL == sizeof (void *));
+/* Check that TIME_UTC is defined and a positive integer. */
+int t3 = TIME_UTC;
+verify (TIME_UTC > 0);
+
int
main (void)
{