summaryrefslogtreecommitdiff
path: root/h2pl
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2016-10-22 13:55:48 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2016-11-11 16:27:20 +0100
commit3d7c117d5246fe5390f3fda7bd31308799d54201 (patch)
tree25ed91492a78660a701502955918ad1c0a5737bc /h2pl
parent32db2dd39faf0a339c2c26769b98a1924ca09892 (diff)
downloadperl-3d7c117d5246fe5390f3fda7bd31308799d54201.tar.gz
Patch unit tests to explicitly insert "." into @INC when needed.
require calls now require ./ to be prepended to the file since . is no longer guaranteed to be in @INC.
Diffstat (limited to 'h2pl')
-rw-r--r--h2pl/cbreak.pl2
-rw-r--r--h2pl/cbreak2.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/h2pl/cbreak.pl b/h2pl/cbreak.pl
index 422185eb7b..ad4c187161 100644
--- a/h2pl/cbreak.pl
+++ b/h2pl/cbreak.pl
@@ -12,7 +12,7 @@ sub set_cbreak {
local($on) = @_;
require 'sizeof.ph';
- require 'sys/ioctl.ph';
+ require './sys/ioctl.ph';
ioctl(STDIN,&TIOCGETP,$sgttyb)
|| die "Can't ioctl TIOCGETP: $!";
diff --git a/h2pl/cbreak2.pl b/h2pl/cbreak2.pl
index 8ac55a3497..db71d26b9d 100644
--- a/h2pl/cbreak2.pl
+++ b/h2pl/cbreak2.pl
@@ -11,7 +11,7 @@ sub cooked {
sub set_cbreak {
local($on) = @_;
- require 'sys/ioctl.pl';
+ require './sys/ioctl.pl';
ioctl(STDIN,$TIOCGETP,$sgttyb)
|| die "Can't ioctl TIOCGETP: $!";