summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/slow/hash-large.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/slow/hash-large.c b/tests/slow/hash-large.c
index 3a563b781a..baca0baa76 100644
--- a/tests/slow/hash-large.c
+++ b/tests/slow/hash-large.c
@@ -28,6 +28,14 @@
#include <gnutls/crypto.h>
#include <limits.h>
#include "utils.h"
+#if !defined(_WIN32)
+# include <signal.h>
+
+static void exit_77(int signo)
+{
+ exit(77);
+}
+#endif
#define MIN(x,y) ((x)<(y))?(x):(y)
@@ -67,6 +75,11 @@ void doit(void)
if (sizeof(size) <= 4)
exit(77);
+#if !defined(_WIN32)
+ signal(SIGSEGV, exit_77);
+ signal(SIGBUS, exit_77);
+#endif
+
global_init();
size = (ssize_t)UINT_MAX + (ssize_t)64*1024;