You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/18 00:20:45 UTC
svn commit: r585735 - /apr/apr-util/trunk/test/testxlate.c
Author: wrowe
Date: Wed Oct 17 15:20:45 2007
New Revision: 585735
URL: http://svn.apache.org/viewvc?rev=585735&view=rev
Log:
Correct what's expected/what was seen
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=585735&r1=585734&r2=585735&view=diff
==============================================================================
--- apr/apr-util/trunk/test/testxlate.c (original)
+++ apr/apr-util/trunk/test/testxlate.c Wed Oct 17 15:20:45 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)