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 testfile.c
Date Wed, 28 May 2003 19:25:33 GMT
trawick     2003/05/28 12:25:33

  Modified:    test     testfile.c
  Log:
  fix some CuAssert calls that had the expected and actual values reversed
  
  Revision  Changes    Path
  1.70      +4 -4      apr/test/testfile.c
  
  Index: testfile.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testfile.c,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- testfile.c	1 May 2003 03:16:30 -0000	1.69
  +++ testfile.c	28 May 2003 19:25:33 -0000	1.70
  @@ -104,7 +104,7 @@
       rv = apr_file_open(&filetest, FILENAME, 
                          APR_READ, 
                          APR_UREAD | APR_UWRITE | APR_GREAD, p);
  -    CuAssertIntEquals(tc, rv, APR_SUCCESS);
  +    CuAssertIntEquals(tc, APR_SUCCESS, rv);
       CuAssertPtrNotNull(tc, filetest);
       apr_file_close(filetest);
   }
  @@ -141,7 +141,7 @@
       apr_assert_success(tc, "Opening test file " FILENAME, rv);
   
       rv = apr_file_name_get(&str, filetest);
  -    CuAssertIntEquals(tc, rv, APR_SUCCESS);
  +    CuAssertIntEquals(tc, APR_SUCCESS, rv);
       CuAssertStrEquals(tc, FILENAME, str);
   
       apr_file_close(filetest);
  @@ -160,7 +160,7 @@
       apr_assert_success(tc, "Opening test file " FILENAME, rv);
   
       rv = apr_file_close(filetest);
  -    CuAssertIntEquals(tc, rv, APR_SUCCESS);
  +    CuAssertIntEquals(tc, APR_SUCCESS, rv);
       /* We just closed the file, so this should fail */
       rv = apr_file_read(filetest, &str, &one);
       CuAssertIntEquals(tc, 1, APR_STATUS_IS_EBADF(rv));
  @@ -232,7 +232,7 @@
       rv = apr_file_open(&filetest, FILENAME, 
                          APR_READ | APR_WRITE, 
                          APR_UREAD | APR_UWRITE | APR_GREAD, p);
  -    CuAssertIntEquals(tc, rv, APR_SUCCESS);
  +    CuAssertIntEquals(tc, APR_SUCCESS, rv);
       CuAssertPtrNotNull(tc, filetest);
   
       apr_file_close(filetest);
  
  
  

Mime
View raw message