apr-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=595989&view=rev
Log:
fix reversal of expected and actual results

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=595989&r1=595988&r2=595989&view=diff
==============================================================================
--- apr/apr-util/trunk/test/testxlate.c (original)
+++ apr/apr-util/trunk/test/testxlate.c Sat Nov 17 11:31:00 2007
@@ -38,14 +38,14 @@
     apr_status_t rv;
 
     rv = apr_xlate_conv_buffer(convset, inbuf, &inbytes_left, buf, &outbytes_left);
-    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
+    ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
 
     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, APR_SUCCESS, rv);
+    ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
 
     buf[sizeof(buf) - outbytes_left - 1] = '\0';
 
@@ -60,7 +60,7 @@
     apr_xlate_t *convset;
 
     rv = apr_xlate_open(&convset, cs2, cs1, pool);
-    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
+    ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
 
     if (rv != APR_SUCCESS)
         return;
@@ -68,7 +68,7 @@
     test_conversion(tc, convset, str1, str2);
 
     rv = apr_xlate_close(convset);
-    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
+    ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
 }
 
 static void test_transformation(abts_case *tc, void *data)



Mime
View raw message