summaryrefslogtreecommitdiff
path: root/ext/Opcode
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-08-28 00:44:15 +0100
committerNicholas Clark <nick@ccl4.org>2009-08-28 00:44:15 +0100
commit2adbc9b6919cad1240a834325b355e9b2d5efd67 (patch)
treea8ca75ac9ed7b8284a533b3f24c8407110d0c546 /ext/Opcode
parentd418880282b996e8cb066a570596b473fa7900da (diff)
downloadperl-2adbc9b6919cad1240a834325b355e9b2d5efd67.tar.gz
Make extensions in ext run their tests from the extension's own directory.
Inspired by, and in parts borrows from, Schwern's branch on github, but takes a slightly different approach in places. Not quite perfect yet - ext/File-Glob still runs from t, at least one FIXME needs fixing, and the changes to dual-life modules' tests need to be filtered back upstream, and possibly modified to suit their respective authors. But it works.
Diffstat (limited to 'ext/Opcode')
-rw-r--r--ext/Opcode/t/Opcode.t2
-rw-r--r--ext/Opcode/t/ops.t2
2 files changed, 0 insertions, 4 deletions
diff --git a/ext/Opcode/t/Opcode.t b/ext/Opcode/t/Opcode.t
index 9f2748cc06..524fb8f6c7 100644
--- a/ext/Opcode/t/Opcode.t
+++ b/ext/Opcode/t/Opcode.t
@@ -3,8 +3,6 @@
$|=1;
BEGIN {
- chdir 't' if -d 't';
- @INC = '../lib';
require Config; import Config;
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
print "1..0\n";
diff --git a/ext/Opcode/t/ops.t b/ext/Opcode/t/ops.t
index 56b1bacabb..30edcdaa5f 100644
--- a/ext/Opcode/t/ops.t
+++ b/ext/Opcode/t/ops.t
@@ -1,8 +1,6 @@
#!./perl
BEGIN {
- chdir 't' if -d 't';
- @INC = '../lib';
require Config; import Config;
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
print "1..0\n";