diff options
author | Ryan Bloom <rbb@apache.org> | 2002-12-12 00:30:38 +0000 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2002-12-12 00:30:38 +0000 |
commit | 6cb0e0bf7989f39388f91acbc67c94f0a2b25417 (patch) | |
tree | 2bc173ac30d0ce3ab6dff9b2a1b37b68f6f176fe /test/testmmap.c | |
parent | 9689c9d6cab2fca1a3db19e3a69c7acf8cda59ba (diff) | |
download | apr-6cb0e0bf7989f39388f91acbc67c94f0a2b25417.tar.gz |
Fix the segfault in testmmap. The first test, create_filename, was
failing, which made the second test fail. That meant that there wasn't
an open file to MMAP. Many of these tests still fail, but that is another
problem.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64150 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testmmap.c')
-rw-r--r-- | test/testmmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testmmap.c b/test/testmmap.c index 3725f9699..7d9da05ec 100644 --- a/test/testmmap.c +++ b/test/testmmap.c @@ -83,7 +83,11 @@ static void create_filename(CuTest *tc) char *oldfileptr; apr_filepath_get(&file1, 0, p); +#ifdef WIN32 + CuAssertTrue(tc, file1[1] == ':'); +#else CuAssertTrue(tc, file1[0] == '/'); +#endif CuAssertTrue(tc, file1[strlen(file1) - 1] != '/'); oldfileptr = file1; |