From d5b38790950533e80d1fc7c79cab4eacef626547 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Sun, 30 Oct 2016 23:51:27 -0200 Subject: Use write_message instead of write In the test cases, there are writes to stdout which do not check the result value. This patch replaces such occurrences with calls to write_message, which properly deals with the unused result. Tested for powerpc64le. --- nptl/tst-kill3.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'nptl/tst-kill3.c') diff --git a/nptl/tst-kill3.c b/nptl/tst-kill3.c index 308cc5a24d..86f3c6c6a2 100644 --- a/nptl/tst-kill3.c +++ b/nptl/tst-kill3.c @@ -25,6 +25,12 @@ #include +static int do_test (void); + +#define TIMEOUT 5 +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" + static pthread_cond_t c = PTHREAD_COND_INITIALIZER; static pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; static pthread_barrier_t b; @@ -33,7 +39,7 @@ static pthread_barrier_t b; static void handler (int sig) { - write (1, "handler called\n", 15); + write_message ("handler called\n"); _exit (1); } @@ -151,8 +157,3 @@ do_test (void) return 0; } - - -#define TIMEOUT 5 -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" -- cgit 1.4.1