diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2006-02-09 19:53:18 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2006-02-09 19:53:18 +0000 |
commit | 3c7fb9ccba441c4b41853a2a2fea497ffa731acc (patch) | |
tree | 4d663b90f544bed1baa6342078dfc23dbaa8a2ed /test/testpipe.c | |
parent | 608dda4b857b00d331be79185766a7bb793b0df0 (diff) | |
download | apr-3c7fb9ccba441c4b41853a2a2fea497ffa731acc.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: https://svn.apache.org/repos/asf/apr/apr/trunk@376406 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testpipe.c')
-rw-r--r-- | test/testpipe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/testpipe.c b/test/testpipe.c index 6ff10944f..10f0f81e0 100644 --- a/test/testpipe.c +++ b/test/testpipe.c @@ -63,14 +63,15 @@ static void set_timeout(abts_case *tc, void *data) rv = apr_file_pipe_timeout_get(readp, &timeout); ABTS_INT_EQUAL(tc, APR_SUCCESS, rv); - ABTS_INT_EQUAL(tc, -1, timeout); + ABTS_ASSERT(tc, "Timeout mismatch, expected -1", timeout == -1); rv = apr_file_pipe_timeout_set(readp, apr_time_from_sec(1)); ABTS_INT_EQUAL(tc, APR_SUCCESS, rv); rv = apr_file_pipe_timeout_get(readp, &timeout); ABTS_INT_EQUAL(tc, APR_SUCCESS, rv); - ABTS_INT_EQUAL(tc, apr_time_from_sec(1), timeout); + ABTS_ASSERT(tc, "Timeout mismatch, expected 1 second", + timeout == apr_time_from_sec(1)); } static void read_write(abts_case *tc, void *data) |