[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] sig2str: Add tests.
From: |
Collin Funk |
Subject: |
[PATCH] sig2str: Add tests. |
Date: |
Wed, 13 Mar 2024 12:34:23 -0700 |
User-agent: |
Mozilla Thunderbird |
I noticed that sig2str and str2sig may be part of the next POSIX
release and they are already provided by Solaris [1] [2].
I think it would be nice to put these two functions inside of signal.h
since it is becoming standardized. We can keep the sig2str.h header
with a warning in a similar way to getprogname.h.
Before doing that, I think it would be best to add a basic test to
ensure no breakage occurs.
Any thoughts on this? I've provided a patch with some basic tests
testing behavior on the ISO C signals.
The behavior for signals between SIGRTMIN + 1 and
(SIGRTMIN + SIGRTMAX) / 2 is untested since I am unsure how to handle
that for Windows. IIRC they define all of the ISO C ones so this test
should work fine.
[1] https://www.austingroupbugs.net/view.php?id=1138
[2] https://docs.oracle.com/cd/E86824_01/html/E54766/sig2str-3c.html
Collin
0001-sig2str-Add-tests.patch
Description: Text Data
- [PATCH] sig2str: Add tests.,
Collin Funk <=