diff options
Diffstat (limited to 'regress/unittests/test_helper/test_helper.c')
-rw-r--r-- | regress/unittests/test_helper/test_helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/regress/unittests/test_helper/test_helper.c b/regress/unittests/test_helper/test_helper.c index 866f3495d..4cc70852c 100644 --- a/regress/unittests/test_helper/test_helper.c +++ b/regress/unittests/test_helper/test_helper.c | |||
@@ -203,7 +203,6 @@ test_info(char *s, size_t len) | |||
203 | *subtest_info != '\0' ? " - " : "", subtest_info); | 203 | *subtest_info != '\0' ? " - " : "", subtest_info); |
204 | } | 204 | } |
205 | 205 | ||
206 | #ifdef SIGINFO | ||
207 | static void | 206 | static void |
208 | siginfo(int unused __attribute__((__unused__))) | 207 | siginfo(int unused __attribute__((__unused__))) |
209 | { | 208 | { |
@@ -212,7 +211,6 @@ siginfo(int unused __attribute__((__unused__))) | |||
212 | test_info(buf, sizeof(buf)); | 211 | test_info(buf, sizeof(buf)); |
213 | atomicio(vwrite, STDERR_FILENO, buf, strlen(buf)); | 212 | atomicio(vwrite, STDERR_FILENO, buf, strlen(buf)); |
214 | } | 213 | } |
215 | #endif | ||
216 | 214 | ||
217 | void | 215 | void |
218 | test_start(const char *n) | 216 | test_start(const char *n) |
@@ -226,6 +224,7 @@ test_start(const char *n) | |||
226 | #ifdef SIGINFO | 224 | #ifdef SIGINFO |
227 | signal(SIGINFO, siginfo); | 225 | signal(SIGINFO, siginfo); |
228 | #endif | 226 | #endif |
227 | signal(SIGUSR1, siginfo); | ||
229 | } | 228 | } |
230 | 229 | ||
231 | void | 230 | void |