aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2010-01-01 22:50:40 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2010-01-01 22:50:40 +0000
commit0493892a1e866c4357556737a3b805a458a7bbdf (patch)
tree430db57318cb582b441ce2a68f25dd4a3bc3490f
parenta79ebc0315296dfe78e87230d17b6ecd6574e1c3 (diff)
downloadspec-helper-0493892a1e866c4357556737a3b805a458a7bbdf.tar
spec-helper-0493892a1e866c4357556737a3b805a458a7bbdf.tar.gz
spec-helper-0493892a1e866c4357556737a3b805a458a7bbdf.tar.bz2
spec-helper-0493892a1e866c4357556737a3b805a458a7bbdf.tar.xz
spec-helper-0493892a1e866c4357556737a3b805a458a7bbdf.zip
fix path to executables
-rwxr-xr-xt/run.t6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/run.t b/t/run.t
index 8df717a..7dfed7d 100755
--- a/t/run.t
+++ b/t/run.t
@@ -6,11 +6,9 @@ use warnings;
use IPC::Run qw/run/;
use Test::More tests => 54;
-use FindBin;
+use FindBin qw/$Bin/;
use File::Temp qw/tempdir/;
-my $path = "$FindBin::Bin/";
-
my ($out, $err);
delete $ENV{RPM_BUILD_ROOT};
@@ -50,6 +48,6 @@ foreach my $prog qw/
sub run_prog {
my ($prog, @args) = @_;
- run (["$FindBin::Bin/$prog", @args], \my($in, $out, $err));
+ run (["$Bin/../$prog", @args], \my($in, $out, $err));
return ($out, $err);
}