mirror of git://sourceware.org/git/glibc.git
Fix nptl/tst-kill5 not to presume SIGRTMAX exists.
This commit is contained in:
parent
ca0e0675a7
commit
ebf7d6eedb
|
|
@ -1,5 +1,7 @@
|
||||||
2015-02-06 Roland McGrath <roland@hack.frob.com>
|
2015-02-06 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
|
||||||
|
|
||||||
* nptl/tst-join5.c: Drop #include <sys/syscall.h>.
|
* nptl/tst-join5.c: Drop #include <sys/syscall.h>.
|
||||||
(wait_code): New function replaces macro.
|
(wait_code): New function replaces macro.
|
||||||
Call nanosleep rather than syscall.
|
Call nanosleep rather than syscall.
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
@ -28,7 +29,7 @@ do_test (void)
|
||||||
{
|
{
|
||||||
/* XXX This test might require architecture and system specific changes.
|
/* XXX This test might require architecture and system specific changes.
|
||||||
There is no guarantee that this signal number is invalid. */
|
There is no guarantee that this signal number is invalid. */
|
||||||
int e = pthread_kill (pthread_self (), SIGRTMAX + 10);
|
int e = pthread_kill (pthread_self (), INT_MAX);
|
||||||
if (e == 0)
|
if (e == 0)
|
||||||
{
|
{
|
||||||
puts ("kill didn't failed");
|
puts ("kill didn't failed");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue