summaryrefslogtreecommitdiff
path: root/test/crypt/sha256c-test.c
diff options
context:
space:
mode:
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