Author: breser
Date: Thu Dec 6 20:56:58 2012
New Revision: 1418073
URL: http://svn.apache.org/viewvc?rev=1418073&view=rev
Log:
On the in-repos-authz branch: Fix test failures for in-repos-authz.
Looked at the existing API and realized in cases where the file doesn't exist
that we really don't return SVN_ERR_AUTHZ_INVALID_CONFIG. So just change the
error code we're expecting to be what we're returning now.
* subversion/tests/libsvn_repos/repos-test.c
(in_repo_authz) Expect SVN_ERR_RA_ILLEGAL_URL from http:// and svn:// tests.
Modified:
subversion/branches/in-repo-authz/subversion/tests/libsvn_repos/repos-test.c
Modified:
subversion/branches/in-repo-authz/subversion/tests/libsvn_repos/repos-test.c
URL:
http://svn.apache.org/viewvc/subversion/branches/in-repo-authz/subversion/tests/libsvn_repos/repos-test.c?rev=1418073&r1=1418072&r2=1418073&view=diff
==============================================================================
---
subversion/branches/in-repo-authz/subversion/tests/libsvn_repos/repos-test.c
(original)
+++
subversion/branches/in-repo-authz/subversion/tests/libsvn_repos/repos-test.c
Thu Dec 6 20:56:58 2012
@@ -1455,20 +1455,20 @@ in_repo_authz(const svn_test_opts_t *opt
/* http:// URL which is unsupported */
err = svn_repos_authz_read2(&authz_cfg, "http://example.com/repo/authz",
TRUE, repos_root, pool);
- if (!err || err->apr_err != SVN_ERR_AUTHZ_INVALID_CONFIG)
+ if (!err || err->apr_err != SVN_ERR_RA_ILLEGAL_URL)
return svn_error_createf(SVN_ERR_TEST_FAILED, err,
"Got %s error instead of expected "
- "SVN_ERR_AUTHZ_INVALID_CONFIG",
+ "SVN_ERR_RA_ILLEGAL_URL",
err ? "unexpected" : "no");
svn_error_clear(err);
/* svn:// URL which is unsupported */
err = svn_repos_authz_read2(&authz_cfg, "svn://example.com/repo/authz",
TRUE, repos_root, pool);
- if (!err || err->apr_err != SVN_ERR_AUTHZ_INVALID_CONFIG)
+ if (!err || err->apr_err != SVN_ERR_RA_ILLEGAL_URL)
return svn_error_createf(SVN_ERR_TEST_FAILED, err,
"Got %s error instead of expected "
- "SVN_ERR_AUTHZ_INVALID_CONFIG",
+ "SVN_ERR_RA_ILLEGAL_URL",
err ? "unexpected" : "no");
svn_error_clear(err);