Stas Bekman wrote:


probably better:

    require Apache::TestClient;
    my $r = Apache::TestClient::GET(@_);
    Carp::confess("oops") unless defined $r;

or restore the original:

    require Apache::TestClient;
    my $r = (\&{$name})->(@_);
    Carp::confess("oops") unless defined $r;


this is what I have now :


sub lwp_call {
    my($name, $shortcut) = (shift, shift);


require Carp; require Apache::TestClient; my $r = (\&{$name})->(@_); # my $r = Apache::TestClient::GET->(@_); Carp::confess("oops") unless defined $r; # my $r = (\&{$name})->(@_); my $error = "";

    unless ($shortcut) {
        #GET, HEAD, POST


make test now shows a huge pile of errors starting with :


waiting for server to start: ok (waited 5 secs)
server localhost:8529 started
server localhost:8530 listening (TestProtocol::echo)
server localhost:8531 listening (TestProtocol::echo_filter)
server localhost:8532 listening (TestProtocol::eliza)
server localhost:8533 listening (TestPreConnection::note)
server localhost:8534 listening (TestFilter::both_str_con_add)
server localhost:8535 listening (TestFilter::in_bbs_msg)
server localhost:8536 listening (TestFilter::in_str_msg)
server localhost:8537 listening (TestDirective::perlmodule)
server localhost:8538 listening (TestDirective::perlrequire)
server localhost:8539 listening (TestDirective::perlloadmodule3)
server localhost:8540 listening (TestDirective::perlloadmodule4)
server localhost:8541 listening (TestDirective::perlloadmodule5)
server localhost:8542 listening (TestDirective::perlloadmodule6)
apache/add_config..............request has failed (the response code was: 500)
see t/logs/error_log for more details
apache/add_config..............dubious
Test returned status 61 (wstat 15616, 0x3d00)
apache/cgihandler..............NOK 1# Failed test 1 in apache/cgihandler.t at line 16
apache/cgihandler..............NOK 2# Failed test 2 in apache/cgihandler.t at line 20
apache/cgihandler..............FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
apache/conftree................request has failed (the response code was: 500)
see t/logs/error_log for more details
apache/conftree................dubious
Test returned status 61 (wstat 15616, 0x3d00)
apache/constants...............ok
apache/post....................NOK 1# Failed test 1 in apache/post.t at line 18
apache/post....................NOK 2# Failed test 2 in apache/post.t at line 23
apache/post....................FAILED tests 1-2


etc etc etc





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to