diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-06-23 11:00:00 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-06-23 11:00:36 +0200 |
commit | 14699b6e371fa2dae3a989c9b1ead4f23a285545 (patch) | |
tree | 9ac34cd89f25d90633870579d92e9874526fe54c /malloc | |
parent | 4e9bf327ad02ed83bded4011af68613e6b03ab33 (diff) | |
download | glibc-14699b6e371fa2dae3a989c9b1ead4f23a285545.tar.gz |
test-skeleton.c: Add write_message function
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/tst-mallocfork2.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/malloc/tst-mallocfork2.c b/malloc/tst-mallocfork2.c index 4939938a44..109c1b922a 100644 --- a/malloc/tst-mallocfork2.c +++ b/malloc/tst-mallocfork2.c @@ -44,6 +44,9 @@ enum { malloc_maximum_size = 70000 }; /* How many signals need to be delivered before the test exits. */ enum { signal_count = 1000 }; +static int do_test (void); +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" /* Process ID of the subprocess which sends SIGUSR1 signals. */ static pid_t sigusr1_sender_pid; @@ -56,14 +59,6 @@ static volatile sig_atomic_t sigusr1_received; progress. Checked by liveness_signal_handler. */ static volatile sig_atomic_t progress_indicator = 1; -/* Write the message to standard output. Usable from signal - handlers. */ -static void -write_message (const char *str) -{ - write (STDOUT_FILENO, str, strlen (str)); -} - static void sigusr1_handler (int signo) { @@ -213,6 +208,3 @@ do_test (void) return 0; } - -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" |