From 767b725a3ffb8626fec0fa9dc47873922cb2cf97 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 15 May 2024 12:04:42 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ modules/getusershell-tests | 1 + tests/test-getusershell.c | 7 +++++++ 3 files changed, 15 insertions(+) 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 -- 2.39.5