aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-cleanup2.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2013-11-20 10:05:24 -0800
committerPaul Pluzhnikov <ppluzhnikov@google.com>2013-11-20 10:05:24 -0800
commit78271fa91a1e6902222e892068750059ec21f396 (patch)
tree7454960ce2b13987b121b16331bd9d12144a249d /nptl/tst-cleanup2.c
parent10ad46bc6526edc5c7afcc57112da96917ff3629 (diff)
downloadglibc-78271fa91a1e6902222e892068750059ec21f396.tar
glibc-78271fa91a1e6902222e892068750059ec21f396.tar.gz
glibc-78271fa91a1e6902222e892068750059ec21f396.tar.bz2
glibc-78271fa91a1e6902222e892068750059ec21f396.zip
Fix failure in nptl/tst-cleanup when building with
gcc (GCC) 4.9.0 20131114 (experimental) 2013-11-20 Paul Pluzhnikov <ppluzhnikov@google.com> * nptl/tst-cleanup2.c (do_test): Handle SIGILL as well.
Diffstat (limited to 'nptl/tst-cleanup2.c')
-rw-r--r--nptl/tst-cleanup2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nptl/tst-cleanup2.c b/nptl/tst-cleanup2.c
index 65af0f2018..519ec79c79 100644
--- a/nptl/tst-cleanup2.c
+++ b/nptl/tst-cleanup2.c
@@ -52,6 +52,12 @@ do_test (void)
exit (1);
}
+ if (sigaction (SIGILL, &sa, 0))
+ {
+ perror ("installing SIGILL handler\n");
+ exit (1);
+ }
+
puts ("Attempting to sprintf to null ptr");
if (setjmp (jmpbuf))
{