From: Bruno Haible Date: Fri, 5 May 2017 21:04:27 +0000 (+0200) Subject: time-c++-tests: Update. X-Git-Tag: v1.0~6194 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=8f4aa684418e05577901b64321f91784d2d70f3e;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index f3513f29e9..4ba9ee4aca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +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. diff --git a/tests/test-time-c++.cc b/tests/test-time-c++.cc index 0eb6982504..09f375c47a 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