Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
p5.26-net-pcap: compatibility with libpcap 1.9.0
* applying patch in to fix tests [maddingue/Net-Pcap#9]
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
perl/p5-net-pcap/files/Net-Pcap-0.18-Adapt-a-test-to-libpcap-1.8.0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/t/09-error.t b/t/09-error.t | ||
--- t/09-error.t | ||
+++ 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) }; | ||
|