You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by pg...@apache.org on 2006/08/23 21:59:35 UTC
svn commit: r434146 - in /perl/Apache-SizeLimit/branches/stable/t/apache:
check_n_requests.t check_n_requests2.t
Author: pgollucci
Date: Wed Aug 23 12:59:35 2006
New Revision: 434146
URL: http://svn.apache.org/viewvc?rev=434146&view=rev
Log:
merge import() error with Apache::Test b/c only 1.29+ has these functions
available.
Reported by: David Wheeler <da...@kineticode.com>
Modified:
perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests.t
perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests2.t
Modified: perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests.t
URL: http://svn.apache.org/viewvc/perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests.t?rev=434146&r1=434145&r2=434146&view=diff
==============================================================================
--- perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests.t (original)
+++ perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests.t Wed Aug 23 12:59:35 2006
@@ -2,15 +2,15 @@
use warnings FATAL => 'all';
use Apache::Test;
-use Apache::TestUtil qw(t_start_error_log_watch t_finish_error_log_watch);
use Apache::TestRequest;
my $module = 'TestApache::check_n_requests';
my $url = Apache::TestRequest::module2url($module);
plan tests => 1, need_min_module_version('Apache::Test' => 1.29);
+require Apache::TestUtil;
-t_start_error_log_watch();
+Apache::TestUtil::t_start_error_log_watch();
my $res = GET $url;
-my $c = grep { / Apache::SizeLimit httpd process too big/ } t_finish_error_log_watch();
+my $c = grep { / Apache::SizeLimit httpd process too big/ } Apache::TestUtil::t_finish_error_log_watch();
ok $c == 1;
Modified: perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests2.t
URL: http://svn.apache.org/viewvc/perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests2.t?rev=434146&r1=434145&r2=434146&view=diff
==============================================================================
--- perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests2.t (original)
+++ perl/Apache-SizeLimit/branches/stable/t/apache/check_n_requests2.t Wed Aug 23 12:59:35 2006
@@ -2,15 +2,15 @@
use warnings FATAL => 'all';
use Apache::Test;
-use Apache::TestUtil qw(t_start_error_log_watch t_finish_error_log_watch);
use Apache::TestRequest;
my $module = 'TestApache::check_n_requests2';
my $url = Apache::TestRequest::module2url($module);
plan tests => 1, need_min_module_version('Apache::Test' => 1.29);
+require Apache::TestUtil;
-t_start_error_log_watch();
+Apache::TestUtil::t_start_error_log_watch();
my $res = GET $url;
-my $c = grep { /Apache::SizeLimit httpd process too big/ } t_finish_error_log_watch();
+my $c = grep { /Apache::SizeLimit httpd process too big/ } Apache::TestUtil::t_finish_error_log_watch();
ok $c == 0;