Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 2 Aug 2013 16:00:14 +0400
From: Aleksey Cherepanov <aleksey.4erepanov@...il.com>
To: john-dev@...ts.openwall.com
Cc: Dhiru Kholia <dhiru.kholia@...il.com>
Subject: Re: patch: add --skip-self-tests option

Dhiru -

On Fri, Aug 02, 2013 at 04:38:15AM +0400, Aleksey Cherepanov wrote:
> On Fri, Aug 02, 2013 at 04:33:36AM +0400, Aleksey Cherepanov wrote:
> > Please push attached patch into the repo.

One more patch to push because previous one breaks builds with defined
BENCH_BUILD.

Thanks!

-- 
Regards,
Aleksey Cherepanov

>From 7a7668ed34819ec98da83aadf55f32d73e699c13 Mon Sep 17 00:00:00 2001
From: Aleksey Cherepanov <aleksey.4erepanov@...il.com>
Date: Fri, 2 Aug 2013 15:59:37 +0400
Subject: [PATCH] fix to repare build with defined BENCH_BUILD after add of
 --skip-self-tests option

---
 src/formats.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/formats.c b/src/formats.c
index e23c47a..13b39cc 100644
--- a/src/formats.c
+++ b/src/formats.c
@@ -172,8 +172,10 @@ static char *fmt_self_test_body(struct fmt_main *format,
 		return NULL;
 #endif
 
+#ifndef BENCH_BUILD
 	if (options.flags & FLG_NOTESTS)
 		return NULL;
+#endif
 
 	if (format->params.plaintext_length < 1 ||
 	    format->params.plaintext_length > PLAINTEXT_BUFFER_SIZE - 3)
-- 
1.7.10.4


Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ