apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r596027 - /apr/apr/trunk/test/testnames.c
Date Sun, 18 Nov 2007 00:27:33 GMT
Author: trawick
Date: Sat Nov 17 16:27:32 2007
New Revision: 596027

URL: http://svn.apache.org/viewvc?rev=596027&view=rev
Log:
check that the library function succeeded, not that
APR_SUCCESS == 0

Modified:
    apr/apr/trunk/test/testnames.c

Modified: apr/apr/trunk/test/testnames.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testnames.c?rev=596027&r1=596026&r2=596027&view=diff
==============================================================================
--- apr/apr/trunk/test/testnames.c (original)
+++ apr/apr/trunk/test/testnames.c Sat Nov 17 16:27:32 2007
@@ -78,7 +78,7 @@
     ABTS_STR_EQUAL(tc, ABS_ROOT"foo/baz", dstpath);
 
     rv = apr_filepath_merge(&dstpath, "", "../test", 0, p);
-    ABTS_INT_EQUAL(tc, 0, APR_SUCCESS);
+    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
     ABTS_STR_EQUAL(tc, "../test", dstpath);
 
     /* Very dangerous assumptions here about what the cwd is.  However, let's assume
@@ -87,7 +87,7 @@
      * the case of the test directory:
      */
     rv = apr_filepath_merge(&dstpath, "", "../test", APR_FILEPATH_TRUENAME, p);
-    ABTS_INT_EQUAL(tc, 0, APR_SUCCESS);
+    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
     ABTS_STR_EQUAL(tc, "../test", dstpath);
 }
 



Mime
View raw message