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

ntyni pushed a commit to branch master
in repository libextutils-parsexs-perl.

commit 101b6646a179d0df08cdb1afbd2da7af27b56f70
Author: Niko Tyni <nt...@debian.org>
Date:   Sat Sep 17 16:17:05 2016 +0300

    Patch the test suite to work without cwd in @INC
    
    Closes: #836882
---
 ...ke-the-test-suite-work-without-cwd-in-INC.patch | 54 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 55 insertions(+)

diff --git 
a/debian/patches/0001-Make-the-test-suite-work-without-cwd-in-INC.patch 
b/debian/patches/0001-Make-the-test-suite-work-without-cwd-in-INC.patch
new file mode 100644
index 0000000..b30d843
--- /dev/null
+++ b/debian/patches/0001-Make-the-test-suite-work-without-cwd-in-INC.patch
@@ -0,0 +1,54 @@
+From dbdca3434d68910ca2105f92813d2ee7588ccf3a Mon Sep 17 00:00:00 2001
+From: Niko Tyni <nt...@debian.org>
+Date: Sat, 17 Sep 2016 16:17:05 +0300
+Subject: [PATCH] Make the test suite work without cwd in @INC
+
+Bug-Debian: https://bugs.debian.org/836882
+---
+ t/001-basic.t | 2 +-
+ t/002-more.t  | 2 ++
+ t/003-usage.t | 2 +-
+ 3 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/t/001-basic.t b/t/001-basic.t
+index 9b2d204..3162da4 100644
+--- a/t/001-basic.t
++++ b/t/001-basic.t
+@@ -56,7 +56,7 @@ SKIP: {
+   ok $lib_file, "ExtUtils::CBuilder::link() returned true value";
+   ok -e $lib_file,  "Make sure $lib_file exists";
+ 
+-  eval {require XSTest};
++  eval {local @INC = @INC; push @INC, '.'; require XSTest};
+   is $@, '', "No error message recorded, as expected";
+   ok  XSTest::is_even(8),
+     "Function created thru XS returned expected true value";
+diff --git a/t/002-more.t b/t/002-more.t
+index e4a68f2..2f70b8b 100644
+--- a/t/002-more.t
++++ b/t/002-more.t
+@@ -55,6 +55,8 @@ SKIP: {
+   ok -e $lib_file,  "Make sure $lib_file exists";
+ 
+   eval{
++    local @INC = @INC;
++    push @INC, '.';
+     package XSMore;
+     our $VERSION = 42;
+     our $boot_ok;
+diff --git a/t/003-usage.t b/t/003-usage.t
+index bfe10ac..104481d 100644
+--- a/t/003-usage.t
++++ b/t/003-usage.t
+@@ -56,7 +56,7 @@ SKIP: {
+   ok $lib_file;
+   ok -e $lib_file, "Make sure $lib_file exists";
+ 
+-  eval {require XSUsage};
++  eval {local @INC = @INC; push @INC, '.'; require XSUsage};
+   is $@, '';
+ 
+   # The real tests here - for each way of calling the functions, call with the
+-- 
+2.9.3
+
diff --git a/debian/patches/series b/debian/patches/series
index 26dcb87..6c4b805 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 Make-the-output-reproducible.patch
+0001-Make-the-test-suite-work-without-cwd-in-INC.patch

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to