From cvs-return-4461-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Thu Dec 12 00:30:41 2002 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 45619 invoked by uid 500); 12 Dec 2002 00:30:41 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 45516 invoked from network); 12 Dec 2002 00:30:40 -0000 Date: 12 Dec 2002 00:30:39 -0000 Message-ID: <20021212003039.50523.qmail@icarus.apache.org> From: rbb@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/test testmmap.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rbb 2002/12/11 16:30:38 Modified: test testmmap.c Log: 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. Revision Changes Path 1.38 +4 -0 apr/test/testmmap.c Index: testmmap.c =================================================================== RCS file: /home/cvs/apr/test/testmmap.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- testmmap.c 24 Nov 2002 04:57:35 -0000 1.37 +++ testmmap.c 12 Dec 2002 00:30:38 -0000 1.38 @@ -83,7 +83,11 @@ 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;