37 lines
835 B
Diff
37 lines
835 B
Diff
From 65485d7891cfe50db941ab14e864bb485a54d71c Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
|
|
Date: Wed, 14 Nov 2018 11:44:08 +0100
|
|
Subject: [PATCH] Skip test-crypt-bcrypt, if no bcrypt method was enabled.
|
|
|
|
---
|
|
test-crypt-bcrypt.c | 12 ++++++++++++
|
|
1 file changed, 12 insertions(+)
|
|
|
|
diff --git a/test-crypt-bcrypt.c b/test-crypt-bcrypt.c
|
|
index 9192530..947639f 100644
|
|
--- a/test-crypt-bcrypt.c
|
|
+++ b/test-crypt-bcrypt.c
|
|
@@ -20,6 +20,8 @@
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
+#if INCLUDE_bcrypt || INCLUDE_bcrypt_a || INCLUDE_bcrypt_x || INCLUDE_bcrypt_y
|
|
+
|
|
static const char *tests[][3] =
|
|
{
|
|
#if INCLUDE_bcrypt_a
|
|
@@ -270,3 +272,13 @@ main (void)
|
|
free (data);
|
|
return status;
|
|
}
|
|
+
|
|
+#else
|
|
+
|
|
+int
|
|
+main (void)
|
|
+{
|
|
+ return 77; /* UNSUPPORTED */
|
|
+}
|
|
+
|
|
+#endif /* INCLUDE_bcrypt* */
|