in reply to PERL_ANYEVENT_NET_TESTS environment variable not set

I tried the force and got the following below

t/80_ssltest.t ............. skipped: no usable Net::SSLeay t/81_hosts.t ............... ok t/handle/01_readline.t ..... ok t/handle/02_write.t ........ ok t/handle/03_http_req.t ..... skipped: PERL_ANYEVENT_NET_TESTS environm +ent variable not set t/handle/04_listen.t ....... AnyEvent::Handle uncaught error: Connecti +on refused at /root/.cpan/build/AnyEvent-7.12-0C2qsS/blib/lib/AnyEven +t/Socket.pm line 1000. t/handle/04_listen.t ....... Dubious, test returned 111 (wstat 28416, +0x6f00) Failed 2/2 subtests Test Summary Report ------------------- t/handle/04_listen.t (Wstat: 28416 Tests: 0 Failed: 0) Non-zero exit status: 111 Parse errors: Bad plan. You planned 2 tests but ran 0. Files=82, Tests=248, 71 wallclock secs ( 0.62 usr 0.99 sys + 3.31 cu +sr 3.51 csys = 8.43 CPU) Result: FAIL Failed 1/82 test programs. 0/248 subtests failed. make: *** [test_dynamic] Error 111 MLEHMANN/AnyEvent-7.12.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports MLEHMANN/AnyEvent-7.12.tar.gz

What should I set the environment variable to?

export $PERL_ANYEVENT_NET_TESTS=

Replies are listed 'Best First'.
Re^2: PERL_ANYEVENT_NET_TESTS environment variable not set
by hippo (Archbishop) on Feb 06, 2016 at 12:12 UTC
    What should I set the environment variable to?

    export $PERL_ANYEVENT_NET_TESTS=

    Firstly, that's not how to set an environment variable in the shell. The leading dollar should be omitted, eg:

    export PERL_ANYEVENT_NET_TESTS=1

    See the bash reference for more on using variables in the shell. However that will not solve the test failure. The message about that variable is merely a diagnostic to tell you that a test is being skipped. It is entirely benign.

    The tests are actually failling because of

    AnyEvent::Handle uncaught error: Connection refused at /root/.cpan/build/AnyEvent-7.12-0C2qsS/blib/lib/AnyEvent/Socket.pm line 1000.

    Fix that and you'll be good to go.