From: Bruno Haible Date: Fri, 5 May 2017 19:38:07 +0000 (+0200) Subject: dirent-c++-tests: Update. X-Git-Tag: v1.0~6204 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=89b335be47327cbfb9e6da6b0cc0c2c07bdf7e4c;p=gnulib.git dirent-c++-tests: Update. * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13. (rewinddir): Declare, missing since 2011-09-13. (dirfd): Declare, missing since 2010-03-08. --- diff --git a/ChangeLog b/ChangeLog index 4605c8e786..4ef1fcad1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-05-05 Bruno Haible + + dirent-c++-tests: Update. + * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13. + (rewinddir): Declare, missing since 2011-09-13. + (dirfd): Declare, missing since 2010-03-08. + 2017-05-04 Bruno Haible argp: Fix mistake in 2017-04-23 commit. diff --git a/tests/test-dirent-c++.cc b/tests/test-dirent-c++.cc index 6292102806..83ad3e884e 100644 --- a/tests/test-dirent-c++.cc +++ b/tests/test-dirent-c++.cc @@ -24,14 +24,30 @@ #include "signature.h" +#if GNULIB_TEST_OPENDIR +SIGNATURE_CHECK (GNULIB_NAMESPACE::opendir, DIR *, (const char *)); +#endif + +#if GNULIB_TEST_READDIR +SIGNATURE_CHECK (GNULIB_NAMESPACE::readdir, struct dirent *, (DIR *)); +#endif + +#if GNULIB_TEST_REWINDDIR +SIGNATURE_CHECK (GNULIB_NAMESPACE::rewinddir, void, (DIR *)); +#endif + +#if GNULIB_TEST_CLOSEDIR SIGNATURE_CHECK (GNULIB_NAMESPACE::closedir, int, (DIR *)); +#endif + +#if GNULIB_TEST_DIRFD +SIGNATURE_CHECK (GNULIB_NAMESPACE::dirfd, int, (DIR *)); +#endif #if GNULIB_TEST_FDOPENDIR SIGNATURE_CHECK (GNULIB_NAMESPACE::fdopendir, DIR *, (int)); #endif -SIGNATURE_CHECK (GNULIB_NAMESPACE::opendir, DIR *, (const char *)); - #if GNULIB_TEST_SCANDIR SIGNATURE_CHECK (GNULIB_NAMESPACE::scandir, int, (const char *, struct dirent ***,