Skip Menu |

This queue is for tickets about the Nmap-Scanner CPAN distribution.

Report information
The Basics
Id: 29741
Status: new
Priority: 0/
Queue: Nmap-Scanner

People
Owner: Nobody in particular
Requestors: kermit.tensmeyer [...] citi.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: error in test (w fix) version 1.0
Date: Wed, 3 Oct 2007 13:27:04 -0400
To: <bug-Nmap-Scanner [...] rt.cpan.org>
From: "Tensmeyer, Kermit " <kermit.tensmeyer [...] citi.com>
From a CPAN build an error prevented "make test" from completing. I ran the test by hand to verify that it didn't get screwed up. It ran the same test by explict "make test" as by -MCPAN build (as expected) lxwkbc194:~/.cpan/build/Nmap-Scanner-1.0-ENP4Ki # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/batch_tcp_syn_scan..............ok t/event_tcp_syn_scan..............ok t/event_tcp_syn_scan_from_file....ok 1/7scan_from_file: unable to retrieve http://nmap-scanner.sf.net/scan-test.xml: 500 Can't connect to nmap-scanner.sf.net:80 (Bad hostname 'nmap-scanner.sf.net') at lib/Nmap/Scanner/Scanner.pm line 879. t/event_tcp_syn_scan_from_file....dubious Test returned status 22 (wstat 5632, 0x1600) DIED. FAILED test 7 Failed 1/7 tests, 85.71% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/event_tcp_syn_scan_from_file.t 22 5632 7 2 7 Failed 1/3 test scripts. 1/13 subtests failed. Files=3, Tests=13, 2 wallclock secs ( 1.79 cusr + 0.15 csys = 1.94 CPU) Failed 1/3 test programs. 1/13 subtests failed. make: *** [test_dynamic] Error 22 Inside of the lib/Nmap/Scanner/Scanner.pm module the sub scan_from_file was modified such that (line 876) a line of code was added my $agent = LWP::UserAgent->new( 'agent' => "Nmap::Scanner/$Nmap::Scanner::VERSION"); ===> $agent->env_proxy(); my $response = $agent->get($filename); if (! $response->is_success()) { die "scan_from_file: unable to retrieve $filename: " . $response->status_line(); } ============================================================= subsequently a make and make test run completed without error not a really significant bug, but a log of a file change and effectes only those operations that are fetching the XML results from beyond the local proxy server. [hmm. the only time *that* would happen is inside of the make test case.] Kermit Tensmeyer kermit.tensmeyer@citigroup.com or ktensmeyer (at) prolifics.com or klt_7940 (at) eml (dot) cc