You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2010/06/20 11:47:50 UTC

svn commit: r956341 - /subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c

Author: dannas
Date: Sun Jun 20 09:47:50 2010
New Revision: 956341

URL: http://svn.apache.org/viewvc?rev=956341&view=rev
Log:
Follow-up to r956330. Fix build failure in the test caused by me somehow 
managing to swap parameters in callers without noticing the compiler 
messages.

* subversion/tests/libsvn_diff/parse-diff-test.c
  (test_parse_unidiff,
   test_parse_git_diff,
   test_parse_property_diff,
   test_parse_property_and_text_diff): Call create_patch_file() with 
     the parameters 'patch_file' and 'fname' switched.

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=956341&r1=956340&r2=956341&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_diff/parse-diff-test.c Sun Jun 20 09:47:50 2010
@@ -167,7 +167,7 @@ test_parse_unidiff(apr_pool_t *pool)
   int i;
   apr_pool_t *iterpool;
 
-  SVN_ERR(create_patch_file(fname, &patch_file, unidiff, pool));
+  SVN_ERR(create_patch_file(&patch_file, fname, unidiff, pool));
 
   reverse = FALSE;
   ignore_whitespace = FALSE;
@@ -304,7 +304,7 @@ test_parse_git_diff(apr_pool_t *pool)
   svn_stream_t *modified_text;
   const char *fname = "test_parse_git_diff.patch";
 
-  SVN_ERR(create_patch_file(fname, &patch_file, git_unidiff, pool));
+  SVN_ERR(create_patch_file(&patch_file, fname, git_unidiff, pool));
 
   /* Parse a deleted empty file */
   SVN_ERR(svn_diff_parse_next_patch(&patch, patch_file, 
@@ -395,7 +395,7 @@ test_parse_property_diff(apr_pool_t *poo
   apr_array_header_t *hunks;
   const char *fname = "test_parse_property_diff.patch";
 
-  SVN_ERR(create_patch_file(fname, &patch_file, property_unidiff, pool));
+  SVN_ERR(create_patch_file(&patch_file, fname, property_unidiff, pool));
 
   SVN_ERR(svn_diff_parse_next_patch(&patch, patch_file, 
                                     FALSE, /* reverse */
@@ -478,7 +478,7 @@ test_parse_property_and_text_diff(apr_po
   apr_array_header_t *hunks;
   const char *fname = "test_parse_property_and_text_diff.patch";
 
-  SVN_ERR(create_patch_file(fname, &patch_file, property_and_text_unidiff,
+  SVN_ERR(create_patch_file(&patch_file, fname, property_and_text_unidiff,
                             pool));
 
   SVN_ERR(svn_diff_parse_next_patch(&patch, patch_file,