Thanks. I'm adding a signature test. (So far, we have a signature test for these functions only in C++ mode, in tests/test-unistd-c++.cc.)
2024-05-15 Bruno Haible <br...@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. diff --git a/modules/getusershell-tests b/modules/getusershell-tests index 0a65257c18..2491caaab5 100644 --- a/modules/getusershell-tests +++ b/modules/getusershell-tests @@ -1,5 +1,6 @@ Files: tests/test-getusershell.c +tests/signature.h tests/macros.h Depends-on: diff --git a/tests/test-getusershell.c b/tests/test-getusershell.c index 4ea13afd90..f009e8902a 100644 --- a/tests/test-getusershell.c +++ b/tests/test-getusershell.c @@ -18,7 +18,14 @@ #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>