diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-08-28 00:44:15 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-08-28 00:44:15 +0100 |
commit | 2adbc9b6919cad1240a834325b355e9b2d5efd67 (patch) | |
tree | a8ca75ac9ed7b8284a533b3f24c8407110d0c546 /ext/Socket | |
parent | d418880282b996e8cb066a570596b473fa7900da (diff) | |
download | perl-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/Socket')
-rw-r--r-- | ext/Socket/t/Socket.t | 2 | ||||
-rw-r--r-- | ext/Socket/t/socketpair.t | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/ext/Socket/t/Socket.t b/ext/Socket/t/Socket.t index 09d25f9b95..ac50cbefc7 100644 --- a/ext/Socket/t/Socket.t +++ b/ext/Socket/t/Socket.t @@ -1,8 +1,6 @@ #!./perl BEGIN { - chdir 't' if -d 't'; - @INC = '../lib'; require Config; import Config; if ($Config{'extensions'} !~ /\bSocket\b/ && !(($^O eq 'VMS') && $Config{d_socket})) { diff --git a/ext/Socket/t/socketpair.t b/ext/Socket/t/socketpair.t index 03cb5a42b7..997628c3bd 100644 --- a/ext/Socket/t/socketpair.t +++ b/ext/Socket/t/socketpair.t @@ -5,8 +5,6 @@ my $can_fork; my $has_perlio; BEGIN { - chdir 't' if -d 't'; - @INC = '../lib'; require Config; import Config; $can_fork = $Config{'d_fork'} || $Config{'d_pseudofork'}; |