subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1098594 - /subversion/trunk/subversion/tests/libsvn_subr/translate-test.c
Date Mon, 02 May 2011 14:28:49 GMT
Author: hwright
Date: Mon May  2 14:28:49 2011
New Revision: 1098594

URL: http://svn.apache.org/viewvc?rev=1098594&view=rev
Log:
* subversion/tests/libsvn_subr/translate-test.c
  (create_file): Catch an return an error.

Modified:
    subversion/trunk/subversion/tests/libsvn_subr/translate-test.c

Modified: subversion/trunk/subversion/tests/libsvn_subr/translate-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/translate-test.c?rev=1098594&r1=1098593&r2=1098594&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/translate-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/translate-test.c Mon May  2 14:28:49 2011
@@ -238,6 +238,8 @@ create_file(const char *fname, const cha
       const char *this_eol_str = eol_str ? eol_str : random_eol_marker();
 
       apr_err = apr_file_printf(f, "%s", lines[i]);
+      if (apr_err)
+        return svn_error_create(apr_err, NULL, fname);
 
       /* Is it overly paranoid to use putc(), because of worry about
          fprintf() doing a newline conversion? */



Mime
View raw message