apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r595995 - /apr/apr-util/trunk/test/testxlate.c
Date Sat, 17 Nov 2007 19:53:37 GMT
Author: trawick
Date: Sat Nov 17 11:53:37 2007
New Revision: 595995

URL: http://svn.apache.org/viewvc?rev=595995&view=rev
Log:
revert r595989 and r595994

These were some of the few correctly ordered comparisons
in the directory, not some of the few INcorrectly ordered
ones.

Modified:
    apr/apr-util/trunk/test/testxlate.c

Modified: apr/apr-util/trunk/test/testxlate.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/test/testxlate.c?rev=595995&r1=595994&r2=595995&view=diff
==============================================================================
--- apr/apr-util/trunk/test/testxlate.c (original)
+++ apr/apr-util/trunk/test/testxlate.c Sat Nov 17 11:53:37 2007
@@ -38,18 +38,18 @@
     apr_status_t rv;
 
     rv = apr_xlate_conv_buffer(convset, inbuf, &inbytes_left, buf, &outbytes_left);
-    ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
+    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
 
     if (rv != APR_SUCCESS)
         return;
 
     rv = apr_xlate_conv_buffer(convset, NULL, NULL, buf + sizeof(buf) -
                                outbytes_left - 1, &outbytes_left);
-    ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
+    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
 
     buf[sizeof(buf) - outbytes_left - 1] = '\0';
 
-    ABTS_STR_EQUAL(tc, buf, expected);
+    ABTS_STR_EQUAL(tc, expected, buf);
 }
 
 static void one_test(abts_case *tc, const char *cs1, const char *cs2,
@@ -60,7 +60,7 @@
     apr_xlate_t *convset;
 
     rv = apr_xlate_open(&convset, cs2, cs1, pool);
-    ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
+    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
 
     if (rv != APR_SUCCESS)
         return;
@@ -68,7 +68,7 @@
     test_conversion(tc, convset, str1, str2);
 
     rv = apr_xlate_close(convset);
-    ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
+    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
 }
 
 static void test_transformation(abts_case *tc, void *data)



Mime
View raw message