subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1406555 - /subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c
Date Wed, 07 Nov 2012 11:22:43 GMT
Author: brane
Date: Wed Nov  7 11:22:42 2012
New Revision: 1406555

URL: http://svn.apache.org/viewvc?rev=1406555&view=rev
Log:
On the wc-collate-path branch:

* subversion/tests/libsvn_subr/utf-test.c (normalized_compare):
   Fix debug and error result printout to match comparator semantics.

Modified:
    subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c

Modified: subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c?rev=1406555&r1=1406554&r2=1406555&view=diff
==============================================================================
--- subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c (original)
+++ subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c Wed Nov  7
11:22:42 2012
@@ -316,7 +316,7 @@ normalized_compare(const char *stra, int
   /* UCS-4 debugging dump of the decomposed strings
   apr_size_t i;
   printf("(%c)%7s %c %s\n", expected,
-         stratag, (!result ? '=' : (result < 0 ? '>' : '<')), strbtag);
+         stratag, (!result ? '=' : (result < 0 ? '<' : '>')), strbtag);
   for (i = 0; i < rlena || i < rlenb; ++i)
     {
       if (i < rlena && i < rlenb)
@@ -336,7 +336,7 @@ normalized_compare(const char *stra, int
         (SVN_ERR_TEST_FAILED, NULL,
          "Expected %s %c %s but %s %c %s",
          stratag, expected, strbtag,
-         stratag, (!result ? '=' : (result < 0 ? '>' : '<')), strbtag);
+         stratag, (!result ? '=' : (result < 0 ? '<' : '>')), strbtag);
     }
 
   return SVN_NO_ERROR;



Mime
View raw message