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 testall.c
Date Sun, 15 Dec 2002 19:19:32 GMT
rbb         2002/12/15 11:19:32

  Modified:    test     testall.c
  Log:
  In apr_assert_success, if the return code is ENOTIMPL, then make sure that
  the output is correct.  Also, just test for equality with APR_SUCCESS.
  
  Revision  Changes    Path
  1.38      +5 -1      apr/test/testall.c
  
  Index: testall.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testall.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- testall.c	15 Dec 2002 19:12:10 -0000	1.37
  +++ testall.c	15 Dec 2002 19:19:32 -0000	1.38
  @@ -62,7 +62,11 @@
   
   void apr_assert_success(CuTest* tc, const char* context, apr_status_t rv)
   {
  -    if (!APR_STATUS_IS_SUCCESS(rv)) {
  +    if (rv == APR_ENOTIMPL) {
  +        CuNotImpl(tc, context);
  +    }
  +
  +    if (rv != APR_SUCCESS) {
           char buf[STRING_MAX], ebuf[128];
           sprintf(buf, "%s (%d): %s\n", context, rv,
                   apr_strerror(rv, ebuf, sizeof ebuf));
  
  
  

Mime
View raw message