summaryrefslogtreecommitdiff
path: root/test/testdup.c
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2002-12-11 20:43:56 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2002-12-11 20:43:56 +0000
commit2ca00c8da722a65bf7fc09dad094dc4c5d759d85 (patch)
tree3f75561aca3bdc2e1a0ce9ccd530bc00b681fd2a /test/testdup.c
parent3e22fea8f91902fb8dda3e2fc52163f7232bade2 (diff)
downloadlibapr-2ca00c8da722a65bf7fc09dad094dc4c5d759d85.tar.gz
Fix a couple of tests that were checking return codes directly instead of
using our macros. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64148 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 e639c83b1..68a036140 100644
--- a/test/testdup.c
+++ b/test/testdup.c
@@ -87,7 +87,7 @@ static void test_file_dup(CuTest *tc)
rv = apr_file_close(file3);
CuAssertIntEquals(tc, APR_SUCCESS, rv);
rv = apr_stat(&finfo, FILENAME, APR_FINFO_NORM, p);
- CuAssertIntEquals(tc, APR_ENOENT, rv);
+ CuAssertIntEquals(tc, 1, APR_STATUS_IS_ENOENT(rv));
}
static void test_file_readwrite(CuTest *tc)
@@ -131,7 +131,7 @@ static void test_file_readwrite(CuTest *tc)
rv = apr_file_close(file3);
CuAssertIntEquals(tc, APR_SUCCESS, rv);
rv = apr_stat(&finfo, FILENAME, APR_FINFO_NORM, p);
- CuAssertIntEquals(tc, APR_ENOENT, rv);
+ CuAssertIntEquals(tc, 1, APR_STATUS_IS_ENOENT(rv));
}
static void test_dup2(CuTest *tc)