changeset 38544:b14e6c2942ae

time-c++-tests: Update. * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01. (localtime, gmtime): Declare, missing since 2017-04-30. (ctime): Declare, missing since 2017-04-30. (strftime): Declare, missing since 2017-04-30. (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since 2015-07-24.
author Bruno Haible <bruno@clisp.org>
date Fri, 05 May 2017 23:04:27 +0200
parents e2551594df0d
children 6711d5f341f8
files ChangeLog tests/test-time-c++.cc
diffstat 2 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 05 22:43:41 2017 +0200
+++ b/ChangeLog	Fri May 05 23:04:27 2017 +0200
@@ -1,3 +1,13 @@
+2017-05-05 Bruno Haible  <bruno@clisp.org>
+
+	time-c++-tests: Update.
+	* tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
+	(localtime, gmtime): Declare, missing since 2017-04-30.
+	(ctime): Declare, missing since 2017-04-30.
+	(strftime): Declare, missing since 2017-04-30.
+	(tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
+	2015-07-24.
+
 2017-05-05 Bruno Haible  <bruno@clisp.org>
 
 	sys_resource-c++-tests: New module.
--- a/tests/test-time-c++.cc	Fri May 05 22:43:41 2017 +0200
+++ b/tests/test-time-c++.cc	Fri May 05 23:04:27 2017 +0200
@@ -29,6 +29,10 @@
                  (struct timespec const *, struct timespec *));
 #endif
 
+#if GNULIB_TEST_TZSET
+SIGNATURE_CHECK (GNULIB_NAMESPACE::tzset, void, (void));
+#endif
+
 #if GNULIB_TEST_MKTIME
 SIGNATURE_CHECK (GNULIB_NAMESPACE::mktime, time_t, (struct tm *));
 #endif
@@ -41,11 +45,36 @@
                  (time_t const *, struct tm *));
 #endif
 
+#if GNULIB_TEST_LOCALTIME
+SIGNATURE_CHECK (GNULIB_NAMESPACE::localtime, struct tm *, (time_t const *));
+#endif
+
+#if 0
+SIGNATURE_CHECK (GNULIB_NAMESPACE::gmtime, struct tm *, (time_t const *));
+#endif
+
 #if GNULIB_TEST_STRPTIME
 SIGNATURE_CHECK (GNULIB_NAMESPACE::strptime, char *,
                  (char const *, char const *, struct tm *));
 #endif
 
+#if GNULIB_TEST_CTIME
+SIGNATURE_CHECK (GNULIB_NAMESPACE::ctime, char *, (time_t const *));
+#endif
+
+#if GNULIB_TEST_STRFTIME
+SIGNATURE_CHECK (GNULIB_NAMESPACE::strftime, size_t,
+                 (char *, size_t, const char *, const struct tm *));
+#endif
+
+#if GNULIB_TEST_TIMERZ
+SIGNATURE_CHECK (GNULIB_NAMESPACE::tzalloc, timezone_t, (char const *));
+SIGNATURE_CHECK (GNULIB_NAMESPACE::tzfree, void, (timezone_t));
+SIGNATURE_CHECK (GNULIB_NAMESPACE::localtime_rz, struct tm *,
+                 (timezone_t, time_t const *, struct tm *));
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mktime_z, time_t, (timezone_t, struct tm *));
+#endif
+
 #if GNULIB_TEST_TIMEGM
 SIGNATURE_CHECK (GNULIB_NAMESPACE::timegm, time_t, (struct tm *));
 #endif