changeset 38534:ab78ae13dd6d

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.
author Bruno Haible <bruno@clisp.org>
date Fri, 05 May 2017 21:38:07 +0200
parents ef26b058a931
children 07f125e23d73
files ChangeLog tests/test-dirent-c++.cc
diffstat 2 files changed, 25 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 05 00:09:48 2017 +0200
+++ b/ChangeLog	Fri May 05 21:38:07 2017 +0200
@@ -1,3 +1,10 @@
+2017-05-05 Bruno Haible  <bruno@clisp.org>
+
+	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  <bruno@clisp.org>
 
 	argp: Fix mistake in 2017-04-23 commit.
--- a/tests/test-dirent-c++.cc	Fri May 05 00:09:48 2017 +0200
+++ b/tests/test-dirent-c++.cc	Fri May 05 21:38:07 2017 +0200
@@ -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 ***,