apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1357966 - /apr/apr/trunk/test/testpass.c
Date Thu, 05 Jul 2012 22:09:05 GMT
Author: sf
Date: Thu Jul  5 22:09:05 2012
New Revision: 1357966

URL: http://svn.apache.org/viewvc?rev=1357966&view=rev
Log:
add another check

Modified:
    apr/apr/trunk/test/testpass.c

Modified: apr/apr/trunk/test/testpass.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testpass.c?rev=1357966&r1=1357965&r2=1357966&view=diff
==============================================================================
--- apr/apr/trunk/test/testpass.c (original)
+++ apr/apr/trunk/test/testpass.c Thu Jul  5 22:09:05 2012
@@ -151,7 +151,9 @@ static void test_bcryptpass(abts_case *t
     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));



Mime
View raw message