diff options
author | 2017-12-08 19:22:41 +1300 | |
---|---|---|
committer | 2017-12-12 08:27:33 +1300 | |
commit | 71b3ea1713fe69a7ef8a0bcf820d3bf18178908f (patch) | |
tree | 688e8ad081349e859e4f3365283377520915cc77 /dev-perl/Net-Pcap/files | |
parent | net-fs/openafs-kernel: Drop older versions (diff) | |
download | gentoo-71b3ea1713fe69a7ef8a0bcf820d3bf18178908f.tar.gz gentoo-71b3ea1713fe69a7ef8a0bcf820d3bf18178908f.tar.bz2 gentoo-71b3ea1713fe69a7ef8a0bcf820d3bf18178908f.zip |
dev-perl/Net-Pcap: Bump to version 0.180.0
- EAPI6
- Add USE=examples
- Fix DESCRIPTION
- Disable silly author tests
- Fix tests against newer pcaps
- Enable tests
- Document comprehensive test notes
Upstream:
- Fix limitation of having only 1 callback function
- Add pcap_offline_filter()
- Add interop tests
- Add fixes for old Test::More's
- Append CCFLAGS instead of overriding
Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'dev-perl/Net-Pcap/files')
-rw-r--r-- | dev-perl/Net-Pcap/files/Net-Pcap-0.18-test-error.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-perl/Net-Pcap/files/Net-Pcap-0.18-test-error.patch b/dev-perl/Net-Pcap/files/Net-Pcap-0.18-test-error.patch new file mode 100644 index 000000000000..1bd8af5e87a9 --- /dev/null +++ b/dev-perl/Net-Pcap/files/Net-Pcap-0.18-test-error.patch @@ -0,0 +1,39 @@ +From 7c831efcb06d6254e54423cdcd95bebbb7725270 Mon Sep 17 00:00:00 2001 +From: Kent Fredric <kentnl@gentoo.org> +Date: Fri, 8 Dec 2017 17:52:13 +1300 +Subject: Allow error message to be a suffix + +Previously, the error message emitted by the native calls was of the +form: + + 'syntax error' + +However, more recently the error message takes the form: + + 'syntax error in filter expression: syntax error' + +This patch pretends the part before the ":" is functionally equivalent +to a line start, for the purposes of testing. + +Bug: https://github.com/maddingue/Net-Pcap/issues/8 +Bug: https://github.com/maddingue/Net-Pcap/pull/9 +--- + t/09-error.t | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/t/09-error.t b/t/09-error.t +index 90337b8..eee679d 100644 +--- a/t/09-error.t ++++ b/t/09-error.t +@@ -22,7 +22,7 @@ is( $@, '', "compile() with an invalid filter string" ); + is( $res, -1, " - result must not be null: $res" ); + eval { $err = Net::Pcap::geterr($pcap) }; + is( $@, '', "geterr()" ); +-like( $err, '/^(?:parse|syntax) error$/', " - \$err must not be null: $err" ); ++like( $err, '/(^|: )(?:parse|syntax) error$/', " - \$err must not be null: $err" ); + + # Testing compile() with a valid filter + eval { $res = Net::Pcap::compile($pcap, \$filter, "tcp", 0, $mask) }; +-- +2.14.3 + |