summaryrefslogtreecommitdiff
path: root/test/testdup.c
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2006-02-09 19:53:18 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2006-02-09 19:53:18 +0000
commitf02e39f014f0d22337c3b9b981258c05a9e5026b (patch)
tree4d663b90f544bed1baa6342078dfc23dbaa8a2ed /test/testdup.c
parentc7e13a58d8d241302a42181cbb70d143a6bdd178 (diff)
downloadlibapr-f02e39f014f0d22337c3b9b981258c05a9e5026b.tar.gz
Fix a host of tests that were using ABTS_INT_EQUAL to compare non-int
results, which caused mass quantities of compile warnings that don't reflect well on a 'test suite'. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@376406 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testdup.c')
-rw-r--r--test/testdup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testdup.c b/test/testdup.c
index 9e025069c..a41f7098b 100644
--- a/test/testdup.c
+++ b/test/testdup.c
@@ -81,7 +81,7 @@ static void test_file_readwrite(abts_case *tc, void *data)
fpos = 0;
rv = apr_file_seek(file1, APR_SET, &fpos);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
- ABTS_INT_EQUAL(tc, 0, fpos);
+ ABTS_ASSERT(tc, "File position mismatch, expected 0", fpos == 0);
txtlen = 50;
rv = apr_file_read(file1, buff, &txtlen);
@@ -166,7 +166,7 @@ static void test_dup2_readwrite(abts_case *tc, void *data)
fpos = 0;
rv = apr_file_seek(testfile, APR_SET, &fpos);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
- ABTS_INT_EQUAL(tc, 0, fpos);
+ ABTS_ASSERT(tc, "File position mismatch, expected 0", fpos == 0);
txtlen = 50;
rv = apr_file_read(testfile, buff, &txtlen);