Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created May 12, 2009 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/110460 to your computer and use it in GitHub Desktop.
Save jnthn/110460 to your computer and use it in GitHub Desktop.
diff --git a/t/harness b/t/harness
index dc68e9a..b67d164 100644
--- a/t/harness
+++ b/t/harness
@@ -12,7 +12,8 @@ use FindBin;
use File::Spec;
use Getopt::Long qw(:config pass_through);
-$ENV{'HARNESS_PERL'} = './perl6';
+my $slash = $^O eq 'MSWin32' ? '\\' : '/';
+$ENV{'HARNESS_PERL'} = ".${slash}perl6";
use Test::Harness;
$Test::Harness::switches = '';
@@ -27,8 +28,6 @@ GetOptions(
my @pass_through_options = grep m/^--?[^-]/, @ARGV;
my @files = grep m/^[^-]/, @ARGV;
-my $slash = $^O eq 'MSWin32' ? '\\' : '/';
-
if ($list_file) {
open(my $f, '<', $list_file)
or die "Can't open file '$list_file' for reading: $!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment