File: if-address.patch

package info (click to toggle)
libio-socket-multicast6-perl 0.03-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 188 kB
  • ctags: 19
  • sloc: perl: 282; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 558 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Ignore interfaces without addresses, otherwise the test fails.
 Idea taken from IO::Socket::Multicast.
Bug: https://rt.cpan.org/Ticket/Display.html?id=105129
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=105129
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2015-06-09

--- a/t/05interface.t
+++ b/t/05interface.t
@@ -19,6 +19,7 @@
 foreach my $if (@interfaces) {
 	next unless ($if->is_running);
 	next unless ($if->is_multicast);
+	next unless ($if->address);
 	
 	# Found multicast enabled interface
 	$iface = $if->name();