Author: stefan2
Date: Tue Dec 3 16:23:54 2013
New Revision: 1547460
URL: http://svn.apache.org/r1547460
Log:
Make repos-test complete for pre-1.5 compat runs.
* subversion/tests/libsvn_repos/repos-test.c
(node_location_segments): Report skipped tests as such.
(test_get_file_revs): Skip for pre-1.5 repos because the feature is
not supported for them.
Modified:
subversion/trunk/subversion/tests/libsvn_repos/repos-test.c
Modified: subversion/trunk/subversion/tests/libsvn_repos/repos-test.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_repos/repos-test.c?rev=1547460&r1=1547459&r2=1547460&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_repos/repos-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_repos/repos-test.c Tue Dec 3
16:23:54 2013
@@ -2462,7 +2462,8 @@ node_location_segments(const svn_test_op
/* Bail (with success) on known-untestable scenarios */
if ((strcmp(opts->fs_type, "bdb") == 0)
&& (opts->server_minor_version == 4))
- return SVN_NO_ERROR;
+ return svn_error_create(SVN_ERR_TEST_SKIPPED, NULL,
+ "not supported for BDB in SVN 1.4");
/* Create the repository. */
SVN_ERR(svn_test__create_repos(&repos, "test-repo-node-location-segments",
@@ -3061,6 +3062,11 @@ test_get_file_revs(const svn_test_opts_t
apr_hash_set(ht_reverse_results, &trunk_results[i].rev,
sizeof(svn_revnum_t), &trunk_results[i]);
+ /* Check for feature support */
+ if (opts->server_minor_version && (opts->server_minor_version < 5))
+ return svn_error_create(SVN_ERR_TEST_SKIPPED, NULL,
+ "not supported in pre-1.5 SVN");
+
/* Create the repository and verify blame results. */
SVN_ERR(svn_test__create_blame_repository(&repos, "test-repo-get-filerevs",
opts, subpool));