You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2005/05/03 18:59:45 UTC

svn commit: r167937 - /httpd/apreq/trunk/library/t/error.c

Author: joes
Date: Tue May  3 09:59:44 2005
New Revision: 167937

URL: http://svn.apache.org/viewcvs?rev=167937&view=rev
Log:
strerror(0) isn't portable; this has nothing
to do with apr.  Let's just remove this particular
test as being more trouble than its worth.

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=167937&r1=167936&r2=167937&view=diff
==============================================================================
--- httpd/apreq/trunk/library/t/error.c (original)
+++ httpd/apreq/trunk/library/t/error.c Tue May  3 09:59:44 2005
@@ -44,10 +44,6 @@
 
     /* 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");
@@ -72,11 +68,7 @@
     apr_pool_t *p;
     dAT;
     at_test_t test_list [] = {
-        { dT(test_strerror, 10
-#ifdef APR_SUCCESS_STRERROR_IS_PORTABLE
-                            +1
-#endif
-            ), "1" }
+        { dT(test_strerror, 10), "1" }
     };
 
     apr_initialize();