summaryrefslogtreecommitdiff
path: root/test/crypt/sha256c-test.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 18:43:57 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 18:43:57 +0200
commite65912f8b2a6fa966b1ba45360070cf9f25568b4 (patch)
tree7fd84c87041f86ba24c03cacd0aa0c656ef88d33 /test/crypt/sha256c-test.c
parent7988979a722b4cdf287b2093956a76a3f19b9897 (diff)
rework most tests to work as standalone package
Diffstat (limited to 'test/crypt/sha256c-test.c')
-rw-r--r--test/crypt/sha256c-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/crypt/sha256c-test.c b/test/crypt/sha256c-test.c
index 357f0d8..5334cc8 100644
--- a/test/crypt/sha256c-test.c
+++ b/test/crypt/sha256c-test.c
@@ -40,6 +40,8 @@ static int
do_test (void)
{
int result = 0;
+
+#if __UCLIBC_HAS_SHA256_CRYPT_IMPL__
int i;
for (i = 0; i < ntests; ++i)
@@ -53,6 +55,7 @@ do_test (void)
result = 1;
}
}
+#endif
return result;
}