diff options
author | bnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68> | 2006-09-22 17:09:08 +0000 |
---|---|---|
committer | bnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68> | 2006-09-22 17:09:08 +0000 |
commit | 68ca944c342583e9725168c7499f2e12695d6ad5 (patch) | |
tree | 978a1c79de4836e17e644058448bb11921e0713f /test | |
parent | 55020764b933fae32f39adbb49c9d663fe191548 (diff) | |
download | libapr-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.c | 12 |
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); |