apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/test aprtest.h server.c
Date Fri, 27 Jul 2001 17:46:01 GMT
wrowe       01/07/27 10:46:01

  Modified:    test     aprtest.h server.c
  Log:
    Hmmm... parent-child status messages need to be interwoven.  This aught
    to do the trick.
  
  Revision  Changes    Path
  1.2       +6 -2      apr/test/aprtest.h
  
  Index: aprtest.h
  ===================================================================
  RCS file: /home/cvs/apr/test/aprtest.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- aprtest.h	2001/07/27 17:40:11	1.1
  +++ aprtest.h	2001/07/27 17:46:01	1.2
  @@ -56,8 +56,12 @@
   #include "apr_general.h"
   #include "apr_strings.h"
   
  +#ifndef APR_TEST_PREFIX
  +#define APR_TEST_PREFIX ""
  +#endif
  +
   #define APR_TEST_BEGIN(rv, desc, op) \
  -    fprintf(stdout, "%s%.*s ", desc,                                  \
  +    fprintf(stdout, "%s%.*s ", APR_TEST_PREFIX desc,                  \
               strlen(desc) < 37 ? 40 - strlen(desc) : 3,                \
               "........................................");              \
       APR_TEST_MORE(rv, op)
  @@ -66,7 +70,7 @@
       if ((rv = (op)) != APR_SUCCESS) {                                 \
           char msgbuf[256];                                             \
           fprintf (stdout, "Failed\n");                                 \
  -        fprintf (stderr, "%s Failed, error %d\n%s", #op, rv,          \
  +        fprintf (stderr, "Error (%d): %s\n%s", rv, #op,               \
                    apr_strerror(stat, msgbuf, sizeof(msgbuf)));         \
           exit(-1); }
   
  
  
  
  1.32      +2 -0      apr/test/server.c
  
  Index: server.c
  ===================================================================
  RCS file: /home/cvs/apr/test/server.c,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- server.c	2001/07/27 17:40:11	1.31
  +++ server.c	2001/07/27 17:46:01	1.32
  @@ -52,6 +52,8 @@
    * <http://www.apache.org/>.
    */
   
  +#define APR_TEST_PREFIX "server: "
  +
   #include "aprtest.h"
   #include <stdlib.h>
   #include "apr_network_io.h"
  
  
  

Mime
View raw message