subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1308543 - /subversion/trunk/subversion/tests/libsvn_subr/crypto-test.c
Date Mon, 02 Apr 2012 20:41:28 GMT
Author: danielsh
Date: Mon Apr  2 20:41:28 2012
New Revision: 1308543

URL: http://svn.apache.org/viewvc?rev=1308543&view=rev
Log:
Improve upon r1308503.

* subversion/tests/libsvn_subr/crypto-test.c
  (test_encrypt_decrypt_password): Use SVN_TEST_SKIP2().

Modified:
    subversion/trunk/subversion/tests/libsvn_subr/crypto-test.c

Modified: subversion/trunk/subversion/tests/libsvn_subr/crypto-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/crypto-test.c?rev=1308543&r1=1308542&r2=1308543&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/crypto-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/crypto-test.c Mon Apr  2 20:41:28 2012
@@ -79,7 +79,6 @@ encrypt_decrypt(svn_crypto__ctx_t *ctx,
 static svn_error_t *
 test_encrypt_decrypt_password(apr_pool_t *pool)
 {
-#if APU_HAVE_CRYPTO
   svn_crypto__ctx_t *ctx;
   const svn_string_t *master = svn_string_create("Pastor Massword", pool);
   int i;
@@ -102,9 +101,6 @@ test_encrypt_decrypt_password(apr_pool_t
 
   svn_pool_destroy(iterpool);
   return SVN_NO_ERROR;
-#else
-  return svn_error_create(SVN_ERR_TEST_SKIPPED, NULL, NULL);
-#endif  /* APU_HAVE_CRYPTO */
 }
 
 
@@ -116,7 +112,7 @@ test_encrypt_decrypt_password(apr_pool_t
 struct svn_test_descriptor_t test_funcs[] =
   {
     SVN_TEST_NULL,
-    SVN_TEST_PASS2(test_encrypt_decrypt_password,
+    SVN_TEST_SKIP2(test_encrypt_decrypt_password, !APU_HAVE_CRYPTO,
                    "basic password encryption/decryption test"),
     SVN_TEST_NULL
   };



Mime
View raw message