summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2006-09-22 17:09:08 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2006-09-22 17:09:08 +0000
commit68ca944c342583e9725168c7499f2e12695d6ad5 (patch)
tree978a1c79de4836e17e644058448bb11921e0713f /test
parent55020764b933fae32f39adbb49c9d663fe191548 (diff)
downloadlibapr-68ca944c342583e9725168c7499f2e12695d6ad5.tar.gz
Handle the variable length volume names on NetWare
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@449005 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/testnames.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/testnames.c b/test/testnames.c
index 0d7a6dfd2..8df4b0834 100644
--- a/test/testnames.c
+++ b/test/testnames.c
@@ -222,6 +222,18 @@ static void root_from_cwd_and_back(CuTest *tc)
CuAssertIntEquals(tc, '/', root[2]);
CuAssertIntEquals(tc, 0, root[3]);
CuAssertStrEquals(tc, origpath + 3, path);
+#elif defined(NETWARE)
+ CuAssertIntEquals(tc, origpath[0], root[0]);
+ {
+ char *pt = strchr(root, ':');
+ CuAssertPtrNotNull(tc, pt);
+ CuAssertIntEquals(tc, ':', pt[0]);
+ CuAssertIntEquals(tc, '/', pt[1]);
+ CuAssertIntEquals(tc, 0, pt[2]);
+ pt = strchr(origpath, ':');
+ CuAssertPtrNotNull(tc, pt);
+ CuAssertStrEquals(tc, (pt+2), path);
+ }
#else
CuAssertIntEquals(tc, APR_SUCCESS, rv);
CuAssertStrEquals(tc, "/", root);