On Thu, Jun 2, 2022 at 1:04 PM <rpl...@apache.org> wrote:
>
> Author: rpluem
> Date: Thu Jun  2 11:04:13 2022
> New Revision: 1901554
>
> URL: http://svn.apache.org/viewvc?rev=1901554&view=rev
> Log:
> * Test returns 200, but content is !!!ERROR!!!

On my machine it returns 400 (hitting the mem limit) with html content..

Also I can't the "plan" line to work, the 'need
"LWP::Protocol::AnyEvent::http"' raises the same error as the
(currently failing) ci:
  Test::plan(): skipping unrecognized directive '1' at
/home/yle/src/apache/asf/httpd/trunk.head/framework/Apache-Test/lib/Apache/Test.pm
line 298.
I tried with and without the "need" keyword or with "need_lwp,
qw(LWP::Protocol::AnyEvent::http)" like it's done elsewhere, to no
avail.
Sorry my Apache::Test foo is quite limited..

The only thing working here is the attached patch, but I guess we need
to make everyone happy (including travis) :)

Regards;
Yann.
Index: t/modules/sed.t
===================================================================
--- t/modules/sed.t	(revision 1901557)
+++ t/modules/sed.t	(working copy)
@@ -12,12 +12,12 @@ my @ts = (
    { url => "/apache/sed-echo/out-foo-grow/foobar.html", content => "", msg => "sed output filter too large", code => '200', body=>"foo" x (8192*1024), resplen=>0},
    { url => "/apache/sed-echo/input", content => 'barbar', msg => "sed input filter", code => '200', body=>"foobar" },
    { url => "/apache/sed-echo/input", content => undef, msg => "sed input filter", code => '200', body=>"foo" x (1024)},
-   { url => "/apache/sed-echo/input", content => '!!!ERROR!!!', msg => "sed input filter", code => '200', body=>"foo" x (1024*4096)}
+   { url => "/apache/sed-echo/input", content => undef, msg => "sed input filter", code => '400', body=>"foo" x (1024*4096)}
 );
 
 my $tests = 2*scalar @ts;
 
-plan tests => $tests, need_module('sed'), need "LWP::Protocol::AnyEvent::http";
+plan tests => $tests, need_module('sed');
 
 # Hack to allow streaming of data in/out of mod_echo
 use LWP::Protocol::AnyEvent::http;

Reply via email to