Return-Path: Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 48628 invoked by uid 500); 9 Aug 2001 16:08:53 -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 48587 invoked from network); 9 Aug 2001 16:08:52 -0000 X-Authentication-Warning: slippy.rat: gbenson owned process doing -bs Date: Thu, 9 Aug 2001 17:08:51 +0100 (BST) From: Gary Benson Sender: To: Subject: perl-framework/t/php/func5.t failure Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi all, Test 2 of 2 in t/php/func5.t does not correctly locate the logfile -- I don't know if it is just my setup or what. Anyway, the patch below makes the test use the same variable that is used during generation of t/conf/httpd.conf in Apache-Test/lib/Apache/TestConfig.pm. Even now I have it correctly finding the logfile, it still doesn't work -- PHP just isn't logging the entry it is expecting to find. Has anybody else had this problem? Gary [ Gary Benson, Red Hat Europe ][ gbenson@redhat.com ][ GnuPG 60E8793A ] Index: perl-framework/t/php/func5.t =================================================================== RCS file: /home/cvspublic/httpd-test/perl-framework/t/php/func5.t,v retrieving revision 1.2 diff -u -r1.2 func5.t --- t/php/func5.t 2001/07/30 19:50:45 1.2 +++ t/php/func5.t 2001/08/09 15:59:06 @@ -5,6 +5,7 @@ use Apache::TestRequest; use Apache::TestConfig; use ExtModules::TestEnv; +use File::Spec::Functions qw(catfile); plan tests => 2, \&ExtModules::TestEnv::has_php4; @@ -23,7 +24,7 @@ ## this is kind of lame and may not work...i dont know how php is ## SUPPPOSED to work in this situation... -my $error_log = $env->{httpd_defines}->{DEFAULT_ERRORLOG}; +my $error_log = catfile $env->{vars}->{t_logs}, "error_log"; open(ERROR_LOG, $error_log); my @log = ; $result = pop @log;