aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_http_test.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-28 09:18:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-28 09:18:00 +0100
commitf3d15b0d92afeb979959e505c740abf4bf81b9b8 (patch)
treeea06aa5e02d1b49d58440cea50f758b96de5e206 /test/rspamd_http_test.c
parentf79fdbdd27f29991c9d6d1ff6ba1232cef1f3c61 (diff)
downloadrspamd-f3d15b0d92afeb979959e505c740abf4bf81b9b8.tar.gz
rspamd-f3d15b0d92afeb979959e505c740abf4bf81b9b8.zip
[Test] Disable broken tests
Diffstat (limited to 'test/rspamd_http_test.c')
-rw-r--r--test/rspamd_http_test.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/rspamd_http_test.c b/test/rspamd_http_test.c
index d14b80894..428c510c4 100644
--- a/test/rspamd_http_test.c
+++ b/test/rspamd_http_test.c
@@ -264,14 +264,14 @@ rspamd_http_test_func (void)
GString *b32_key;
double diff, total_diff = 0.0, *latency, mean, std;
- rspamd_cryptobox_init ();
- rspamd_snprintf (filepath, sizeof (filepath), "/tmp/http-test-XXXXXX");
- g_assert ((fd = mkstemp (filepath)) != -1);
-
/* Read environment */
if ((env = getenv ("RSPAMD_HTTP_CONNS")) != NULL) {
pconns = strtoul (env, NULL, 10);
}
+ else {
+ return;
+ }
+
if ((env = getenv ("RSPAMD_HTTP_TESTS")) != NULL) {
ntests = strtoul (env, NULL, 10);
}
@@ -282,6 +282,10 @@ rspamd_http_test_func (void)
nservers = strtoul (env, NULL, 10);
}
+ rspamd_cryptobox_init ();
+ rspamd_snprintf (filepath, sizeof (filepath), "/tmp/http-test-XXXXXX");
+ g_assert ((fd = mkstemp (filepath)) != -1);
+
sfd = g_alloca (sizeof (*sfd) * nservers);
latency = g_malloc0 (pconns * ntests * sizeof (gdouble));