[libtest-unixsock-perl] 01/01: Patch to add working directory to @INC for tests 14 and 15

Christopher Stuart Hoskin mans0954 at moszumanska.debian.org
Wed Jan 4 07:11:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

mans0954 pushed a commit to branch master
in repository libtest-unixsock-perl.

commit 86bbd7f9bb805e93a5084778472653a0b70ab19e
Author: Christopher Hoskin <christopher.hoskin at gmail.com>
Date:   Wed Jan 4 07:11:06 2017 +0000

    Patch to add working directory to @INC for tests 14 and 15
---
 debian/changelog              |  9 +++++----
 debian/patches/series         |  1 +
 debian/patches/test-inc.patch | 35 +++++++++++++++++++++++++++++++++++
 debian/rules                  |  2 --
 4 files changed, 41 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d9fd7e7..5b4220b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,11 @@
 libtest-unixsock-perl (0.1-1) UNRELEASED; urgency=low
 
   TODO:
-  - test suite: not sure but I think fixing the test suite would be better
-    than the workaround in d/rules.
-  - Do you have any suggestions how to do this? Any attempt I made to modify
-    @INC seem to be ignored by Module::Build::Tiny. Thanks.
+  - Tests fail with messages of the form
+     IPC Fatal Error: Leftover files in the directory (/tmp/test2~11385~jTI3BV/11385~0~1~11386~0~13~Test2~Event~Note.ready)!
+     Could not remove IPC temp dir (/tmp/test2~11385~jTI3BV) at /usr/share/perl5/Test2/IPC/Driver/Files.pm line 420 during global destruction.
+    on testing (seems okay on unstable)
+
 
   * Initial Release. (Closes: #849809)
 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a9f6e69
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+test-inc.patch
diff --git a/debian/patches/test-inc.patch b/debian/patches/test-inc.patch
new file mode 100644
index 0000000..3bed049
--- /dev/null
+++ b/debian/patches/test-inc.patch
@@ -0,0 +1,35 @@
+Description: Add working directory to test search paths
+ Tests 14 and 15 fail to run on recent versions of Perl following the removal
+ of '.' from @INC in response to CVE-2016-1238. This patch follows the
+ recommended solution of using FindBin to find the relative path.
+Bug: https://github.com/fujiwara/Test-UNIXSock/issues/1
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=119683
+Forwarded: https://github.com/fujiwara/Test-UNIXSock/pull/2
+Author: Christopher Hoskin <mans0954 at debian.org>
+Last-Update: 2017-01-04
+
+--- a/t/14_simple_unix.t
++++ b/t/14_simple_unix.t
+@@ -1,6 +1,9 @@
+ use warnings;
+ use strict;
+ 
++use FindBin;
++use lib "$FindBin::Bin/../";
++
+ BEGIN {
+     if ($^O =~ m/^(?:qnx|nto|vos|MSWin32)$/ ) {
+         print "1..0 # Skip: UNIX domain sockets not implemented on $^O\n";
+--- a/t/15_oo_unix.t
++++ b/t/15_oo_unix.t
+@@ -1,6 +1,10 @@
+ use warnings;
+ use strict;
+ 
++use FindBin;
++use lib "$FindBin::Bin/../";
++
++
+ BEGIN {
+     if ($^O =~ m/^(?:qnx|nto|vos|MSWin32)$/ ) {
+         print "1..0 # Skip: UNIX domain sockets not implemented on $^O\n";
diff --git a/debian/rules b/debian/rules
index 30c959c..abde6ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,5 +3,3 @@
 %:
 	dh $@
 
-override_dh_auto_test:
-	prove --blib -I.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtest-unixsock-perl.git



More information about the Pkg-perl-cvs-commits mailing list