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