From 9c8654e3e06b2c10e932bcaecfc3365f8d55a48a Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 4 Jan 2016 23:34:00 +0000 Subject: [PATCH] tests/sigaltstack.c: use libtests * tests/sigaltstack.c (main): Use perror_msg_and_skip. --- tests/sigaltstack.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/sigaltstack.c b/tests/sigaltstack.c index 10a4b6b0..884e3c55 100644 --- a/tests/sigaltstack.c +++ b/tests/sigaltstack.c @@ -1,3 +1,4 @@ +#include "tests.h" #include int @@ -8,5 +9,7 @@ main(void) .ss_flags = SS_DISABLE, .ss_size = 0xdeadbeef }; - return sigaltstack(&ss, (stack_t *) 0) ? 77 : 0; + if (sigaltstack(&ss, (stack_t *) 0)) + perror_msg_and_skip("sigaltstack"); + return 0; } -- 2.40.0