From: Collin Funk Date: Sun, 29 Dec 2024 19:30:59 +0000 (-0800) Subject: sig2str tests: Add signature check. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf6f7d8a81f231b14ab50194a46bbcbca21835b1;p=thirdparty%2Fgnulib.git sig2str tests: Add signature check. * modules/sig2str-tests (Files): Add tests/signature.h. * tests/test-sig2str.c: Include signal.h instead of sig2str.h. Check the function signature of sig2str and str2sig. --- diff --git a/ChangeLog b/ChangeLog index 19c49c449b..8fcb0f9a46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-12-29 Collin Funk + + sig2str tests: Add signature check. + * modules/sig2str-tests (Files): Add tests/signature.h. + * tests/test-sig2str.c: Include signal.h instead of sig2str.h. Check the + function signature of sig2str and str2sig. + 2024-12-29 Bruno Haible doc: Document the modules for containers. diff --git a/modules/sig2str-tests b/modules/sig2str-tests index c995f1474a..73d59eb6f7 100644 --- a/modules/sig2str-tests +++ b/modules/sig2str-tests @@ -1,5 +1,6 @@ Files: tests/test-sig2str.c +tests/signature.h tests/macros.h Depends-on: diff --git a/tests/test-sig2str.c b/tests/test-sig2str.c index 6093af0474..53edc63fbb 100644 --- a/tests/test-sig2str.c +++ b/tests/test-sig2str.c @@ -19,7 +19,11 @@ #include /* Specification. */ -#include "sig2str.h" +#include + +#include "signature.h" +SIGNATURE_CHECK (sig2str, int, (int, char *)); +SIGNATURE_CHECK (str2sig, int, (char const *restrict, int *restrict)); #include