]> Savannah Git Hosting - gnulib.git/commitdiff
sig2str tests: Add signature check.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 29 Dec 2024 19:30:59 +0000 (11:30 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 29 Dec 2024 19:30:59 +0000 (11:30 -0800)
* 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.

ChangeLog
modules/sig2str-tests
tests/test-sig2str.c

index 19c49c449b2059233b3a88e34fc53b52244323a1..8fcb0f9a46054d145469a90a084d4f9f115251bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-12-29  Collin Funk  <collin.funk1@gmail.com>
+
+       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  <bruno@clisp.org>
 
        doc: Document the modules for containers.
index c995f1474a1b4e3952b67f21ce5fe48d53994386..73d59eb6f738669f2e205e9e41baec9a47ddb989 100644 (file)
@@ -1,5 +1,6 @@
 Files:
 tests/test-sig2str.c
+tests/signature.h
 tests/macros.h
 
 Depends-on:
index 6093af0474b525515ea4b27ff0d48209ed12bcda..53edc63fbbe418691c7a9c43c1db039a0f8424c7 100644 (file)
 #include <config.h>
 
 /* Specification.  */
-#include "sig2str.h"
+#include <signal.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (sig2str, int, (int, char *));
+SIGNATURE_CHECK (str2sig, int, (char const *restrict, int *restrict));
 
 #include <string.h>