You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by be...@apache.org on 2002/03/14 15:58:33 UTC

cvs commit: apr/test testatomic.c

ben         02/03/14 06:58:33

  Modified:    test     testatomic.c
  Log:
  Since atomic_t isn't available on FreeBSD < 4, don't test it.
  
  Revision  Changes    Path
  1.9       +10 -0     apr/test/testatomic.c
  
  Index: testatomic.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testatomic.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- testatomic.c	13 Mar 2002 20:39:27 -0000	1.8
  +++ testatomic.c	14 Mar 2002 14:58:33 -0000	1.9
  @@ -69,6 +69,15 @@
   #include <pthread.h>
   #endif
   
  +#if defined(__FreeBSD__) && (__FreeBSD__ < 4)
  +
  +int main(void)
  +{
  +    printf("atomic test skipped\n");
  +}
  +
  +#else 
  +
   apr_pool_t *context;
   apr_atomic_t y;      /* atomic locks */
   
  @@ -339,3 +348,4 @@
   }
   
   #endif /* !APR_HAS_THREADS */
  +#endif /* !(defined(__FreeBSD) && (__FreeBSD__ < 4)) */