You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2014/06/27 23:29:59 UTC
svn commit: r1606248 -
/subversion/branches/svn-auth-x509/subversion/tests/libsvn_subr/x509-test.c
Author: breser
Date: Fri Jun 27 21:29:58 2014
New Revision: 1606248
URL: http://svn.apache.org/r1606248
Log:
On svn-auth-x509 branch, fix comments and remove unused variable.
* subversion/tests/libsvn_subr/x509-test.c
(x509_test): Fix comment to match implementation.
(compare_dates): Remove unused matched variable and expand a comment
slightly for more clarity.
Modified:
subversion/branches/svn-auth-x509/subversion/tests/libsvn_subr/x509-test.c
Modified: subversion/branches/svn-auth-x509/subversion/tests/libsvn_subr/x509-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/svn-auth-x509/subversion/tests/libsvn_subr/x509-test.c?rev=1606248&r1=1606247&r2=1606248&view=diff
==============================================================================
--- subversion/branches/svn-auth-x509/subversion/tests/libsvn_subr/x509-test.c (original)
+++ subversion/branches/svn-auth-x509/subversion/tests/libsvn_subr/x509-test.c Fri Jun 27 21:29:58 2014
@@ -39,7 +39,7 @@ struct x509_test {
/* These timesamps are in the format that svn_time_to_cstring() produces.
* This is not the same string as the parser returns since it returns
* the ressult of svn_time_to_human_cstring(), which is in the local
- * timezone. So we convert both of these to apr_time_t and compare that. */
+ * timezone. So we can't store exactly what the parser will output. */
const char *valid_from;
const char *valid_to;
};
@@ -87,7 +87,6 @@ compare_dates(const char *expected,
apr_pool_t *pool)
{
apr_time_t expected_tm;
- svn_boolean_t matched;
const char *expected_human;
if (!actual)
@@ -96,7 +95,7 @@ compare_dates(const char *expected,
/* Jump through some hoops here since the human timestamp is in localtime
* so we take the expected which will be in ISO-8601 and convert it to
- * apr_time_t and then convert to a human cstring. */
+ * apr_time_t and then convert to a human cstring for comparison. */
SVN_ERR(svn_time_from_cstring(&expected_tm, expected, pool));
expected_human = svn_time_to_human_cstring(expected_tm, pool);
if (!expected_human)