]> Savannah Git Hosting - gnulib.git/commitdiff
getusershell tests: Verify the function declarations.
authorBruno Haible <bruno@clisp.org>
Wed, 15 May 2024 10:04:42 +0000 (12:04 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 May 2024 10:04:42 +0000 (12:04 +0200)
* tests/test-getusershell.c: Include signature.h.
(getusershell, setusershell, endusershell): Check the signatures.
* modules/getusershell-tests (Files): Add tests/signature.h.

ChangeLog
modules/getusershell-tests
tests/test-getusershell.c

index bf05fbc5225febd208c902d93052248e7ef2ed61..f2101d68496e99ca3b215ac2d5cd5567349fd42e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-05-15  Bruno Haible  <bruno@clisp.org>
+
+       getusershell tests: Verify the function declarations.
+       * tests/test-getusershell.c: Include signature.h.
+       (getusershell, setusershell, endusershell): Check the signatures.
+       * modules/getusershell-tests (Files): Add tests/signature.h.
+
 2024-05-15  Collin Funk  <collin.funk1@gmail.com>
 
        getusershell: Add tests.
index 0a65257c18c1c5cd9965850c1b429fd5b2bb27c6..2491caaab5946f69cdc95fffe8b3ce700957ef04 100644 (file)
@@ -1,5 +1,6 @@
 Files:
 tests/test-getusershell.c
+tests/signature.h
 tests/macros.h
 
 Depends-on:
index 4ea13afd9005b4b29fcfdf6893b7ba5c0da7cd7d..f009e8902ab967ca043c790598735d7fc4b13cd8 100644 (file)
 
 #include <config.h>
 
+/* Specification.  */
 #include <unistd.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (getusershell, char *, (void));
+SIGNATURE_CHECK (setusershell, void, (void));
+SIGNATURE_CHECK (endusershell, void, (void));
+
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>