apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r596120 - /apr/apr/branches/1.2.x/test/testnames.c
Date Sun, 18 Nov 2007 19:35:16 GMT
Author: trawick
Date: Sun Nov 18 11:35:15 2007
New Revision: 596120

URL: http://svn.apache.org/viewvc?rev=596120&view=rev
Log:
grab r596027 from trunk since it fixes a broken
test

check that the library function succeeded, not that
APR_SUCCESS == 0


Modified:
    apr/apr/branches/1.2.x/test/testnames.c

Modified: apr/apr/branches/1.2.x/test/testnames.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/test/testnames.c?rev=596120&r1=596119&r2=596120&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/test/testnames.c (original)
+++ apr/apr/branches/1.2.x/test/testnames.c Sun Nov 18 11:35:15 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