* tests/test-getusershell.c: Include signature.h.
(getusershell, setusershell, endusershell): Check the signatures.
* modules/getusershell-tests (Files): Add tests/signature.h.
+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.
Files:
tests/test-getusershell.c
+tests/signature.h
tests/macros.h
Depends-on:
#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>