You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2004/05/25 10:07:41 UTC

cvs commit: apr/test testlock.c

jorton      2004/05/25 01:07:41

  Modified:    test     testlock.c
  Log:
  * test/testlock.c (test_thread_rwlock): Catch ENOTIMPL.
  
  Revision  Changes    Path
  1.29      +4 -0      apr/test/testlock.c
  
  Index: testlock.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testlock.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -d -u -r1.28 -r1.29
  --- testlock.c	14 May 2004 14:43:22 -0000	1.28
  +++ testlock.c	25 May 2004 08:07:41 -0000	1.29
  @@ -183,6 +183,10 @@
       apr_status_t s1, s2, s3, s4;
   
       s1 = apr_thread_rwlock_create(&rwlock, p);
  +    if (s1 == APR_ENOTIMPL) {
  +        ABTS_NOT_IMPL(tc, "rwlocks not implemented");
  +        return;
  +    }
       apr_assert_success(tc, "rwlock_create", s1);
       ABTS_PTR_NOTNULL(tc, rwlock);