Author: joes
Date: Sun Apr 24 05:16:24 2005
New Revision: 164470
URL: http://svn.apache.org/viewcvs?rev=164470&view=rev
Log:
Ignore APR_SUCCESS apreq_strerror tests, since its
not portable to older libapr-0's.
Modified:
httpd/apreq/trunk/library/t/error.c
Modified: httpd/apreq/trunk/library/t/error.c
URL:
http://svn.apache.org/viewcvs/httpd/apreq/trunk/library/t/error.c?rev=164470&r1=164469&r2=164470&view=diff
==============================================================================
--- httpd/apreq/trunk/library/t/error.c (original)
+++ httpd/apreq/trunk/library/t/error.c Sun Apr 24 05:16:24 2005
@@ -44,9 +44,10 @@
/* Test some common APR status codes also */
+#ifdef APR_SUCCESS_STRERROR_IS_PORTABLE
str = apreq_strerror(APR_SUCCESS, buf, sizeof buf);
AT_str_eq(str, "Success");
-
+#endif
str = apreq_strerror(APR_EINIT, buf, sizeof buf);
AT_str_eq(str, "There is no error, this value signifies an initialized "
"error code");
@@ -71,7 +72,11 @@
apr_pool_t *p;
dAT;
at_test_t test_list [] = {
- { dT(test_strerror, 11), "1" }
+ { dT(test_strerror, 10
+#ifdef APR_SUCCESS_STRERROR_IS_PORTABLE
+ +1
+#endif
+ ), "1" }
};
apr_initialize();