diff options
author | Stefan Fritsch <sf@apache.org> | 2012-07-05 22:09:05 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2012-07-05 22:09:05 +0000 |
commit | e65ee2f679868ace36870428d16749a342be7c45 (patch) | |
tree | 93c9e85881d82d054534e7fb9ed1b0e088994ed7 /test | |
parent | 0d2bb4f27388336d57b90afa5c90fbbe845ffff6 (diff) | |
download | apr-e65ee2f679868ace36870428d16749a342be7c45.tar.gz |
add another check
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1357966 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testpass.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/testpass.c b/test/testpass.c index 6c3989215..584c94a01 100644 --- a/test/testpass.c +++ b/test/testpass.c @@ -151,7 +151,9 @@ static void test_bcryptpass(abts_case *tc, void *data) const char *hash2 = "$2a$08$qipUJiI9fySUN38hcbz.lucXvAmtgowKOWYtB9y3CXyl6lTknruou"; const char *pass3 = "foobar"; - apr_bcrypt_encode(pass, 5, salt, sizeof(salt), hash, sizeof(hash)); + APR_ASSERT_SUCCESS(tc, "bcrypt encode password", + apr_bcrypt_encode(pass, 5, salt, sizeof(salt), hash, + sizeof(hash)); APR_ASSERT_SUCCESS(tc, "bcrypt password validated", apr_password_validate(pass, hash)); |