You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2010/09/13 18:34:42 UTC
svn commit: r996596 -
/subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c
Author: philip
Date: Mon Sep 13 16:34:42 2010
New Revision: 996596
URL: http://svn.apache.org/viewvc?rev=996596&view=rev
Log:
Followup to r996581.
* subversion/tests/libsvn_diff/parse-diff-test.c
(test_parse_unidiff): Don't swap filenames for reverse diff.
Modified:
subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c
Modified: subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c?rev=996596&r1=996595&r2=996596&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c Mon Sep 13 16:34:42 2010
@@ -363,16 +363,8 @@ test_parse_unidiff(apr_pool_t *pool)
SVN_ERR(svn_diff_parse_next_patch(&patch, patch_file, reverse,
ignore_whitespace, pool, pool));
SVN_TEST_ASSERT(patch);
- if (reverse)
- {
- SVN_TEST_ASSERT(! strcmp(patch->new_filename, "A/D/gamma.orig"));
- SVN_TEST_ASSERT(! strcmp(patch->old_filename, "A/D/gamma"));
- }
- else
- {
- SVN_TEST_ASSERT(! strcmp(patch->old_filename, "A/D/gamma.orig"));
- SVN_TEST_ASSERT(! strcmp(patch->new_filename, "A/D/gamma"));
- }
+ SVN_TEST_ASSERT(! strcmp(patch->old_filename, "A/D/gamma.orig"));
+ SVN_TEST_ASSERT(! strcmp(patch->new_filename, "A/D/gamma"));
SVN_TEST_ASSERT(patch->hunks->nelts == 1);
hunk = APR_ARRAY_IDX(patch->hunks, 0, svn_diff_hunk_t *);