apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/test testthread.c
Date Thu, 02 Aug 2001 14:57:36 GMT
trawick     01/08/02 07:57:36

  Modified:    test     testthread.c
  Log:
  fix the exit status of testthread so it is easier to use in an
  automated regression script
  
  Revision  Changes    Path
  1.21      +2 -1      apr/test/testthread.c
  
  Index: testthread.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testthread.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- testthread.c	2001/08/01 16:49:29	1.20
  +++ testthread.c	2001/08/02 14:57:36	1.21
  @@ -197,11 +197,12 @@
       if (x != 40000) {
           fflush(stdout);
           fprintf(stderr, "The locks didn't work????  %d\n", x);
  +        exit(-1);
       }
       else {
           fprintf(stdout, "Everything is working!\n");
       }
  -    return 1;
  +    return 0;
   }
   
   #endif /* !APR_HAS_THREADS */
  
  
  

Mime
View raw message