summaryrefslogtreecommitdiff
path: root/tests/slow
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-05-10 20:57:08 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-05-10 20:57:08 +0200
commit848c1e27f8a33fe9b77d5e0fb0e17ffe2b71d326 (patch)
tree7609cd63199b92ec3f63652d99692e6445aaa2b9 /tests/slow
parent0727463965a8929419e4152d259977c88922fa2a (diff)
downloadgnutls-848c1e27f8a33fe9b77d5e0fb0e17ffe2b71d326.tar.gz
tests: don't run hash-large on freebsd
Diffstat (limited to 'tests/slow')
-rw-r--r--tests/slow/hash-large.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/slow/hash-large.c b/tests/slow/hash-large.c
index 724ee4af0b..39abb090fc 100644
--- a/tests/slow/hash-large.c
+++ b/tests/slow/hash-large.c
@@ -28,6 +28,16 @@
#include <gnutls/crypto.h>
#include <limits.h>
#include "utils.h"
+
+#if defined(__FreeBSD__)
+/* its libc cannot handle that large allocations */
+void doit(void)
+{
+ exit(77);
+}
+
+#else /* not freebsd */
+
#if !defined(_WIN32)
# include <signal.h>
@@ -172,4 +182,4 @@ void doit(void)
put_mem(buf);
gnutls_global_deinit();
}
-
+#endif