apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject svn commit: r448612 - /apr/apr/branches/1.2.x/test/testnames.c
Date Thu, 21 Sep 2006 17:36:22 GMT
Author: bnicholes
Date: Thu Sep 21 10:36:22 2006
New Revision: 448612

URL: http://svn.apache.org/viewvc?view=rev&rev=448612
Log:
Handle the variable length volume names on NetWare

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?view=diff&rev=448612&r1=448611&r2=448612
==============================================================================
--- apr/apr/branches/1.2.x/test/testnames.c (original)
+++ apr/apr/branches/1.2.x/test/testnames.c Thu Sep 21 10:36:22 2006
@@ -239,6 +239,18 @@
     ABTS_INT_EQUAL(tc, '/', root[2]);
     ABTS_INT_EQUAL(tc, 0, root[3]);
     ABTS_STR_EQUAL(tc, origpath + 3, path);
+#elif defined(NETWARE)
+    ABTS_INT_EQUAL(tc, origpath[0], root[0]);
+    {
+    char *pt = strchr(root, ':');
+    ABTS_PTR_NOTNULL(tc, pt);
+    ABTS_INT_EQUAL(tc, ':', pt[0]);
+    ABTS_INT_EQUAL(tc, '/', pt[1]);
+    ABTS_INT_EQUAL(tc, 0, pt[2]);
+    pt = strchr(origpath, ':');
+    ABTS_PTR_NOTNULL(tc, pt);
+    ABTS_STR_EQUAL(tc, (pt+2), path);
+    }
 #else
     ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
     ABTS_STR_EQUAL(tc, "/", root);



Mime
View raw message