From a3bd727568b54303a9e6c34ebce2faedd450e87c Mon Sep 17 00:00:00 2001 From: Johan Holmberg Date: Tue, 12 May 2009 16:53:18 +0000 Subject: [PATCH] Make handling of Windows / Linux symmetric when it comes to "clines". Implemented as a Perl script on Linux. --- run-regression.rb | 2 ++ t/bin/unix/clines | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100755 t/bin/unix/clines diff --git a/run-regression.rb b/run-regression.rb index 5a15a1e..d430123 100755 --- a/run-regression.rb +++ b/run-regression.rb @@ -250,6 +250,8 @@ end path_dirs = [ File.expand_path("t/bin") ] if RUBY_PLATFORM =~ /mswin/ path_dirs.unshift File.expand_path("t/bin/windows") +else + path_dirs.unshift File.expand_path("t/bin/unix") end ENV["PATH"] = [ diff --git a/t/bin/unix/clines b/t/bin/unix/clines new file mode 100755 index 0000000..de337a4 --- /dev/null +++ b/t/bin/unix/clines @@ -0,0 +1,7 @@ +#!/usr/bin/perl + +use strict; + +for my $arg (@ARGV) { + print "$arg\n"; +}