[DTrace-devel] [PATCH] Remove dependency on bits/signum.h from test

Eugene Loh eugene.loh at oracle.com
Wed Dec 8 15:56:23 UTC 2021


Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
s/refering/referring/

On 12/8/21 10:50 AM, Kris Van Hees via DTrace-devel wrote:
> The actions/raise/tst.sigdefs.sh test was explicitly refering to the
> bits/generic-signum.h and bits/signum.h header files.  This same info
> is found by including signal.h which is the preferred way.  Also, newer
> glibc versions no longer have bits/signum.h.
>
> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
>   test/unittest/actions/raise/tst.sigdefs.sh | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/test/unittest/actions/raise/tst.sigdefs.sh b/test/unittest/actions/raise/tst.sigdefs.sh
> index 8eefb0c7..1e2ddc8f 100755
> --- a/test/unittest/actions/raise/tst.sigdefs.sh
> +++ b/test/unittest/actions/raise/tst.sigdefs.sh
> @@ -19,8 +19,7 @@ BEGIN
>       nerr = 0;
>   EOF
>   
> -# before glibc 2.26, there was no signum-generic.h, but that's okay
> -cat /usr/include/bits/signum-generic.h /usr/include/bits/signum.h \
> +cat /usr/include/signal.h \
>   | awk '
>       /SIGRTMIN/ || /SIGRTMAX/ || /SIGSTKSZ/ { next }
>       /^#define[[:blank:]]*SIG[[:alnum:]]/ { signum[$2] = $3 }



More information about the DTrace-devel mailing list