You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2007/11/17 20:31:01 UTC
svn commit: r595989 - /apr/apr-util/trunk/test/testxlate.c
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)