summaryrefslogtreecommitdiff
path: root/test/crypt/sha512c-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/sha512c-test.c
parent7988979a722b4cdf287b2093956a76a3f19b9897 (diff)
rework most tests to work as standalone package
Diffstat (limited to 'test/crypt/sha512c-test.c')
-rw-r--r--test/crypt/sha512c-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/crypt/sha512c-test.c b/test/crypt/sha512c-test.c
index c829242..be55b59 100644
--- a/test/crypt/sha512c-test.c
+++ b/test/crypt/sha512c-test.c
@@ -41,6 +41,8 @@ static int
do_test (void)
{
int result = 0;
+
+#if __UCLIBC_HAS_SHA512_CRYPT_IMPL__
int i;
for (i = 0; i < ntests; ++i)
@@ -54,6 +56,7 @@ do_test (void)
result = 1;
}
}
+#endif
return result;
}