From: Bruno Haible Date: Wed, 15 May 2024 10:04:42 +0000 (+0200) Subject: getusershell tests: Verify the function declarations. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=767b725a3ffb8626fec0fa9dc47873922cb2cf97;p=gnulib.git 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/ChangeLog b/ChangeLog index bf05fbc522..f2101d6849 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-05-15 Bruno Haible + + 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 getusershell: Add tests. 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 +/* Specification. */ #include + +#include "signature.h" +SIGNATURE_CHECK (getusershell, char *, (void)); +SIGNATURE_CHECK (setusershell, void, (void)); +SIGNATURE_CHECK (endusershell, void, (void)); + #include #include #include