summaryrefslogtreecommitdiff
path: root/source4/script/tests/Samba4.pm
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-17 13:06:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:50:59 -0500
commit86a137b6ccefc2c2206843f31c9377beb711e3d3 (patch)
treec63267163507086589a4144c12527aed3b6d08f5 /source4/script/tests/Samba4.pm
parented4489eb505f35c1c6477a8b81cd0201fcdf30b6 (diff)
downloadsamba-86a137b6ccefc2c2206843f31c9377beb711e3d3.tar.gz
samba-86a137b6ccefc2c2206843f31c9377beb711e3d3.tar.bz2
samba-86a137b6ccefc2c2206843f31c9377beb711e3d3.zip
r22305: fix make test using a absolute path for
--with-selftest-prefix metze (This used to be commit b9dc78c3ad4c636bd8356978c18313ab4277cd64)
Diffstat (limited to 'source4/script/tests/Samba4.pm')
-rw-r--r--source4/script/tests/Samba4.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/script/tests/Samba4.pm b/source4/script/tests/Samba4.pm
index 28d8b91aa5..cc8f619c79 100644
--- a/source4/script/tests/Samba4.pm
+++ b/source4/script/tests/Samba4.pm
@@ -6,6 +6,7 @@
package Samba4;
use strict;
+use Cwd qw(abs_path);
use FindBin qw($RealBin);
use POSIX;
@@ -403,8 +404,7 @@ sub provision($$$$$)
my $server = "localhost";
my $srcdir="$RealBin/../..";
-d $prefix or mkdir($prefix) or die("Unable to create $prefix");
- my $prefix_abs = getcwd()."/".$prefix;
-
+ my $prefix_abs = abs_path($prefix);
my $tmpdir = "$prefix_abs/tmp";
my $etcdir = "$prefix_abs/etc";
my $piddir = "$prefix_abs/pid";