rbb 2002/12/11 12:43:56
Modified: test testdup.c
Log:
Fix a couple of tests that were checking return codes directly instead of
using our macros.
Revision Changes Path
1.7 +2 -2 apr/test/testdup.c
Index: testdup.c
===================================================================
RCS file: /home/cvs/apr/test/testdup.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- testdup.c 24 Nov 2002 06:13:59 -0000 1.6
+++ testdup.c 11 Dec 2002 20:43:56 -0000 1.7
@@ -87,7 +87,7 @@
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 @@
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)