* modules/signal-h-tests (Depends-on): Add assert-h.
* tests/test-signal-h.c: Check that SIG2STR_MAX is defined to a
positive integer.
2024-12-29 Collin Funk <collin.funk1@gmail.com>
+ signal-h tests: Check that SIG2STR_MAX is properly defined.
+ * modules/signal-h-tests (Depends-on): Add assert-h.
+ * tests/test-signal-h.c: Check that SIG2STR_MAX is defined to a
+ positive integer.
+
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
tests/test-signal-h.c
Depends-on:
+assert-h
signal-h-c++-tests
configure.ac:
#include <signal.h>
+/* Check that SIG2STR_MAX is defined to a positive integer. */
+static_assert (0 < SIG2STR_MAX);
+
/* Check for required types. */
struct
{