>From 8f4aa684418e05577901b64321f91784d2d70f3e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 May 2017 23:04:27 +0200 Subject: [PATCH 11/16] 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. --- ChangeLog | 10 ++++++++++ tests/test-time-c++.cc | 29 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/ChangeLog b/ChangeLog index f3513f2..4ba9ee4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2017-05-05 Bruno Haible + 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 + sys_resource-c++-tests: New module. * tests/test-sys_resource-c++.cc: New file. (getrusage): Declare, missing since 2012-04-13. diff --git a/tests/test-time-c++.cc b/tests/test-time-c++.cc index 0eb6982..09f375c 100644 --- a/tests/test-time-c++.cc +++ b/tests/test-time-c++.cc @@ -29,6 +29,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::nanosleep, int, (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 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::gmtime_r, struct tm *, (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 -- 2.7.4