From: Dmitry V. Levin Date: Thu, 11 Aug 2016 17:58:09 +0000 (+0000) Subject: tests: skip rt_tgsigqueueinfo.test when the syscall is not available X-Git-Tag: v4.14~204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67ee3d6184ba74b06f99649da06cda1aa62e1aef;p=strace tests: skip rt_tgsigqueueinfo.test when the syscall is not available * tests/rt_tgsigqueueinfo.c (main): Skip the test when the syscall is not available. --- diff --git a/tests/rt_tgsigqueueinfo.c b/tests/rt_tgsigqueueinfo.c index 3796b51c..ebfb7196 100644 --- a/tests/rt_tgsigqueueinfo.c +++ b/tests/rt_tgsigqueueinfo.c @@ -67,7 +67,8 @@ main (void) info->si_value.sival_ptr = (void *) (unsigned long) 0xdeadbeeffacefeed; if (k_tgsigqueueinfo(info->si_pid, SIGUSR1, info)) - perror_msg_and_fail("rt_tgsigqueueinfo"); + (errno == ENOSYS ? perror_msg_and_skip : perror_msg_and_fail)( + "rt_tgsigqueueinfo"); printf("rt_tgsigqueueinfo(%u, %u, %s, {si_signo=%s" ", si_code=SI_QUEUE, si_errno=ENOENT, si_pid=%u"