httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Benson <gben...@redhat.com>
Subject perl-framework/t/php/func5.t failure
Date Thu, 09 Aug 2001 16:08:51 GMT

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 = <ERROR_LOG>;
 $result = pop @log;




Mime
View raw message