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 testlock.c
Date Thu, 11 Apr 2002 22:55:41 GMT
trawick     02/04/11 15:55:41

  Modified:    test     testlock.c
  Log:
  allow the testlock program to continue on systems where read/write locks
  aren't implemented (e.g., Darwin); there is still useful stuff to test
  
  Revision  Changes    Path
  1.19      +9 -3      apr/test/testlock.c
  
  Index: testlock.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testlock.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- testlock.c	9 Apr 2002 06:45:06 -0000	1.18
  +++ testlock.c	11 Apr 2002 22:55:41 -0000	1.19
  @@ -482,9 +482,15 @@
       }
   
       if ((rv = test_thread_rwlock()) != APR_SUCCESS) {
  -        fprintf(stderr,"thread_rwlock test failed : [%d] %s\n",
  -                rv, apr_strerror(rv, (char*)errmsg, 200));
  -        exit(-6);
  +        if (rv == APR_ENOTIMPL) {
  +            fprintf(stderr, "read/write locks aren't implemented on this "
  +                    "platform... skipping those tests...\n");
  +        }
  +        else {
  +            fprintf(stderr,"thread_rwlock test failed : [%d] %s\n",
  +                    rv, apr_strerror(rv, (char*)errmsg, 200));
  +            exit(-6);
  +        }
       }
   
       if ((rv = test_cond()) != APR_SUCCESS) {
  
  
  

Mime
View raw message