Skip Menu |

This queue is for tickets about the Net-Pcap CPAN distribution.

Report information
The Basics
Id: 15342
Status: resolved
Priority: 0/
Queue: Net-Pcap

People
Owner: SAPER [...] cpan.org
Requestors: jbrunette [...] excel.net
Cc:
AdminCc:

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



Subject: 02-lookup.t - lookupnet fails if device returned by lookupdev has no IP configured
Perl 5.8.5, Fedora Core 3. eth0 on one of our linux boxes does not have any IP configuration. During "make test", lookupdev() returns eth0. When lookupnet($dev) is called, the following results: t/02-lookup.........NOK 40 # Failed test ' - $err must be null: eth0: no IPv4 address assigned' # in t/02-lookup.t at line 188. # got: 'eth0: no IPv4 address assigned' # expected: '' t/02-lookup.........NOK 41 # Failed test ' - $result must be null: -1' # in t/02-lookup.t at line 189. # got: '-1' # expected: '0' Argument "" isn't numeric in right bitshift (>>) at t/02-lookup.t line 199. t/02-lookup.........NOK 42 # Failed test ' - $net isn't null: '' => 0.0.0.0' # in t/02-lookup.t at line 190. # '' # ne # '' Argument "" isn't numeric in right bitshift (>>) at t/02-lookup.t line 199. t/02-lookup.........NOK 43 # Failed test ' - $mask isn't null: '' => 0.0.0.0' # in t/02-lookup.t at line 191. # '' # ne # '' Argument "" isn't numeric in right bitshift (>>) at t/02-lookup.t line 199. t/02-lookup.........ok 44/45Argument "" isn't numeric in right bitshift (>>) at t/02-lookup.t line 199. t/02-lookup.........ok 45/45# Looks like you failed 4 tests of 45. t/02-lookup.........dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 40-43 Failed 4/45 tests, 91.11% okay
Date: Fri, 28 Oct 2005 01:21:59 +0200
From: Sébastien Aperghis-Tramoni <maddingue [...] free.fr>
To: bug-Net-Pcap [...] rt.cpan.org
Subject: Re: [cpan #15342] 02-lookup.t - lookupnet fails if device returned by lookupdev has no IP configured
RT-Send-Cc:
Show quoted text
> eth0 on one of our linux boxes does not have any IP configuration. During > "make test", lookupdev() returns eth0. When lookupnet($dev) is called, the > following results: > [...]
Right, I didn't thought about that case. It wil be added for the next release of Net::Pcap. Thanks for your report. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.