summaryrefslogtreecommitdiff
path: root/test/crypt/sha256c-test.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 19:17:44 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 19:17:44 +0200
commit05df1d32db889cdaea6307a6afb751d9fb7c0ce2 (patch)
treeb8a7b30c54dc46f8fea485b7c5abbe660f720aa4 /test/crypt/sha256c-test.c
parente4d332c787e57abc32dec949ca8def57feae32ce (diff)
allow to skip tests, if uClibc-ng feature is disabled
Diffstat (limited to 'test/crypt/sha256c-test.c')
-rw-r--r--test/crypt/sha256c-test.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/crypt/sha256c-test.c b/test/crypt/sha256c-test.c
index 5334cc8..945e294 100644
--- a/test/crypt/sha256c-test.c
+++ b/test/crypt/sha256c-test.c
@@ -39,9 +39,9 @@ static const struct
static int
do_test (void)
{
+#if __UCLIBC_HAS_SHA256_CRYPT_IMPL__
int result = 0;
-#if __UCLIBC_HAS_SHA256_CRYPT_IMPL__
int i;
for (i = 0; i < ntests; ++i)
@@ -55,9 +55,12 @@ do_test (void)
result = 1;
}
}
-#endif
return result;
+#else
+ return 23;
+#endif
+
}
#define TIMEOUT 6