Subject: | t/17-lib_version.t not working with opensuse libpcap |
t/17-lib_version.t does not work with OpenSUSE 11.1, which ships with a
CVS version of libcap (version 0.9-PRE-CVS). Here is a patch to add
support for version numbers in that format:
diff -U 1 -r Net-Pcap-0.16/t/17-lib_version.t
Net-Pcap-0.16-fixed/t/17-lib_version.t
--- Net-Pcap-0.16/t/17-lib_version.t 2007-12-22 12:42:24.000000000 -0700
+++ Net-Pcap-0.16-fixed/t/17-lib_version.t 2009-03-20
12:43:50.000000000 -0600
@@ -17,3 +17,3 @@
like( $version,
- '/^libpcap version (?:\d\.\d+\.\d+|unknown \(pre 0\.8\))$/',
+ '/^libpcap version
(?:\d\.\d+\.\d+|\d\.\d+[^0-9.\s]*|unknown \(pre 0\.8\))$/',
" - checking version string ($version)"