apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/test testatomic.c
Date Fri, 06 Dec 2002 17:19:18 GMT
rbb         2002/12/06 09:19:17

  Modified:    test     testatomic.c
  Log:
  Testatomic needs to be run on all platforms.  Adding a platform specific
  check to the test doesn't help us find problems.  If the test fails, that
  is important information to have.
  
  Also, get the test to run on platforms without threads, it used to
  segfault.
  
  Revision  Changes    Path
  1.21      +2 -10     apr/test/testatomic.c
  
  Index: testatomic.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testatomic.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- testatomic.c	6 Dec 2002 16:06:06 -0000	1.20
  +++ testatomic.c	6 Dec 2002 17:19:17 -0000	1.21
  @@ -68,15 +68,6 @@
   #include <pthread.h>
   #endif
   
  -#if defined(__FreeBSD__) && (__FreeBSD__ < 5)
  -
  -int main(void)
  -{
  -    printf("atomic test skipped\n");
  -}
  -
  -#else 
  -
   apr_pool_t *context;
   apr_atomic_t y;      /* atomic locks */
   
  @@ -178,6 +169,8 @@
   {
       apr_status_t rv;
   
  +    apr_initialize();
  +
       fprintf(stderr,
               "This program won't work fully on this platform because there is no "
               "support for threads.\n");
  @@ -383,4 +376,3 @@
   }
   
   #endif /* !APR_HAS_THREADS */
  -#endif /* !(defined(__FreeBSD) && (__FreeBSD__ < 4)) */
  
  
  

Mime
View raw message