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 2015/02/10 15:34:09 UTC
svn commit: r1658721 -
/subversion/branches/pin-externals/subversion/tests/libsvn_client/client-test.c
Author: brane
Date: Tue Feb 10 14:34:08 2015
New Revision: 1658721
URL: http://svn.apache.org/r1658721
Log:
On the pin-externals branch: Tweak the pin-externals API test to
exercise the case where an exernal reference has an operative revision.
* subversion/tests/libsvn_client/client-test.c
(test_copy_pin_externals): Add operative revisions to two externals
references, one that gets pinned and one that doesn't.
Update the expected results.
Modified:
subversion/branches/pin-externals/subversion/tests/libsvn_client/client-test.c
Modified: subversion/branches/pin-externals/subversion/tests/libsvn_client/client-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/pin-externals/subversion/tests/libsvn_client/client-test.c?rev=1658721&r1=1658720&r2=1658721&view=diff
==============================================================================
--- subversion/branches/pin-externals/subversion/tests/libsvn_client/client-test.c (original)
+++ subversion/branches/pin-externals/subversion/tests/libsvn_client/client-test.c Tue Feb 10 14:34:08 2015
@@ -1097,10 +1097,10 @@ test_copy_pin_externals(const svn_test_o
/* Configure some externals on ^/A */
propval = svn_string_create("^/A/D/gamma B/gamma\n"
- "^/A/D/G C/exdir_G\n"
+ "-r1 ^/A/D/G C/exdir_G\n"
"^/A/D/H@1 C/exdir_H\n"
"^/A/D/H C/exdir_H2\n"
- "^/A/B D/z/y/z/blah\n",
+ "-r1 ^/A/B D/z/y/z/blah\n",
pool);
A_url = apr_pstrcat(pool, repos_url, "/A", SVN_VA_NULL);
SVN_ERR(svn_client_propset_remote(SVN_PROP_EXTERNALS, propval,
@@ -1160,7 +1160,8 @@ test_copy_pin_externals(const svn_test_o
{
SVN_TEST_STRING_ASSERT(item->target_dir, "C/exdir_G");
/* Not pinned. */
- SVN_TEST_ASSERT(item->revision.kind == svn_opt_revision_head);
+ SVN_TEST_ASSERT(item->revision.kind == svn_opt_revision_number);
+ SVN_TEST_ASSERT(item->revision.value.number == 1);
SVN_TEST_ASSERT(item->peg_revision.kind == svn_opt_revision_head);
}
else if (strcmp(item->url, "^/A/D/H") == 0)
@@ -1191,7 +1192,7 @@ test_copy_pin_externals(const svn_test_o
SVN_TEST_STRING_ASSERT(item->target_dir, "D/z/y/z/blah");
/* Pinned to r2. */
SVN_TEST_ASSERT(item->revision.kind == svn_opt_revision_number);
- SVN_TEST_ASSERT(item->revision.value.number == 2);
+ SVN_TEST_ASSERT(item->revision.value.number == 1);
SVN_TEST_ASSERT(item->peg_revision.kind == svn_opt_revision_number);
SVN_TEST_ASSERT(item->peg_revision.value.number == 2);
}