Return-Path: Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 63229 invoked by uid 500); 31 Aug 2001 16:22:10 -0000 Mailing-List: contact test-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-dev@httpd.apache.org Received: (qmail 63207 invoked from network); 31 Aug 2001 16:22:10 -0000 X-Authentication-Warning: mako.covalent.net: dougm owned process doing -bs Date: Fri, 31 Aug 2001 09:24:22 -0700 (PDT) From: Doug MacEachern To: Stas Bekman cc: test-dev@httpd.apache.org Subject: Re: sub write_file In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N go ahead and create an Apache::TestUtil with this kind of stuff. anything to reduce duplication in the .t's is good. as for cleaning up generated files and directories, the gendir, genfile stuff won't work because .t's are using a thawed config that is not saved (nor should it be). something that removes the files/directories for you with END or DESTROY would be good. that way they get cleaned up even if the test fails. would also make things clear if all the TestUtil stuff gets prefixed with t_: t_open t_mkdir t_expect