You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@locus.apache.org on 2000/04/03 21:31:44 UTC

cvs commit: apache-2.0/src/lib/apr/test testpipe.c testproc.c testshmem.c

rbb         00/04/03 12:31:44

  Modified:    src/lib/apr/test testpipe.c testproc.c testshmem.c
  Log:
  Fix some of the APR test programs.
  
  Revision  Changes    Path
  1.4       +5 -0      apache-2.0/src/lib/apr/test/testpipe.c
  
  Index: testpipe.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/testpipe.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- testpipe.c	2000/03/31 08:36:20	1.3
  +++ testpipe.c	2000/04/03 19:31:42	1.4
  @@ -73,6 +73,11 @@
       ap_size_t nbytes;
       char *buf;
   
  +    if (ap_initialize() != APR_SUCCESS) {
  +        fprintf(stderr, "Couldn't initialize.");
  +        exit(-1);
  +    }
  +    atexit(ap_terminate);
       if (ap_create_context(&context, NULL) != APR_SUCCESS) {
           fprintf(stderr, "Couldn't allocate context.");
           exit(-1);
  
  
  
  1.13      +5 -0      apache-2.0/src/lib/apr/test/testproc.c
  
  Index: testproc.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/testproc.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- testproc.c	2000/03/31 08:36:20	1.12
  +++ testproc.c	2000/04/03 19:31:43	1.13
  @@ -78,6 +78,11 @@
       char *args[3];
       char *teststr;
   
  +    if (ap_initialize() != APR_SUCCESS) {
  +        fprintf(stderr, "Couldn't initialize.");
  +        exit(-1);
  +    }
  +    atexit(ap_terminate);
       ap_create_context(&context, NULL);
   
   
  
  
  
  1.5       +1 -1      apache-2.0/src/lib/apr/test/testshmem.c
  
  Index: testshmem.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/testshmem.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- testshmem.c	2000/03/31 08:36:20	1.4
  +++ testshmem.c	2000/04/03 19:31:43	1.5
  @@ -60,7 +60,7 @@
   #include "errno.h"
   #include <stdio.h>
   #include <stdlib.h>
  -#include <process.h>
  +/*#include <process.h>*/
   #ifdef BEOS
   #include <unistd.h>
   #endif