[libdevel-nytprof-perl] 01/02: Patch the test suite to work without cwd in @INC

Niko Tyni ntyni at moszumanska.debian.org
Sat Sep 17 11:11:42 UTC 2016


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

ntyni pushed a commit to branch master
in repository libdevel-nytprof-perl.

commit 69ee60a5d715f5099bfcf000a52b6b856d7aed7c
Author: Niko Tyni <ntyni at debian.org>
Date:   Sat Sep 17 14:00:17 2016 +0300

    Patch the test suite to work without cwd in @INC
    
    Closes: #837135
---
 ...ke-the-test-suite-work-without-cwd-in-INC.patch | 30 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 31 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..6dd84db
--- /dev/null
+++ b/debian/patches/0001-Make-the-test-suite-work-without-cwd-in-INC.patch
@@ -0,0 +1,30 @@
+From 79ec7c821309249c1f2ba0a077c55e3a45e7974c Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Sat, 17 Sep 2016 14:00:17 +0300
+Subject: [PATCH] Make the test suite work without cwd in @INC
+
+Many of the reference result files contain file names relative to cwd.
+
+While this is a minimal fix, it would possibly be cleaner to do all
+ at INC manipulation in the numerous test files themselves.
+
+Bug-Debian: https://bugs.debian.org/837135
+---
+ t/lib/NYTProfTest.pm | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/t/lib/NYTProfTest.pm b/t/lib/NYTProfTest.pm
+index 9c29627..e8bd303 100644
+--- a/t/lib/NYTProfTest.pm
++++ b/t/lib/NYTProfTest.pm
+@@ -1,5 +1,7 @@
+ package NYTProfTest;
+ 
++unshift @INC, '.';
++
+ use strict;
+ use warnings;
+ 
+-- 
+2.9.3
+
diff --git a/debian/patches/series b/debian/patches/series
index d07685b..77173c9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ usr-share.patch
 flamegraph.patch
 autopkgtest.patch
 spelling.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/libdevel-nytprof-perl.git



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