This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Adjust t/run/switchd-78586.t to work under t/TEST and t/harness.
authorNicholas Clark <nick@ccl4.org>
Thu, 11 Nov 2010 13:45:21 +0000 (13:45 +0000)
committerNicholas Clark <nick@ccl4.org>
Thu, 11 Nov 2010 13:45:21 +0000 (13:45 +0000)
t/run/switchd-78586.t

index 6dbf045..02e0b25 100644 (file)
@@ -1,6 +1,12 @@
 #!perl -Ilib -d:switchd_empty
 
-BEGIN { $^P = 0x122; chdir 't'; require './test.pl'; }
+BEGIN {
+    $^P = 0x122;
+    chdir 't';
+    @INC = ('../lib', 'lib');
+    require './test.pl';
+}
+
 use strict;
 use warnings;
 no warnings 'redefine';