diff options
Diffstat (limited to 'sql-bench/test-transactions.sh')
-rw-r--r-- | sql-bench/test-transactions.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql-bench/test-transactions.sh b/sql-bench/test-transactions.sh index 8f92633524f..50d7098bca7 100644 --- a/sql-bench/test-transactions.sh +++ b/sql-bench/test-transactions.sh @@ -21,6 +21,7 @@ ##################### Standard benchmark inits ############################## +use Cwd; use DBI; use Benchmark; #use warnings; @@ -30,7 +31,7 @@ $opt_groups=27; # Characters are 'A' -> Z $opt_loop_count=10000; # Change this to make test harder/easier $opt_medium_loop_count=100; # Change this to make test harder/easier -chomp($pwd = `pwd`); $pwd = "." if ($pwd eq ''); +$pwd = cwd(); $pwd = "." if ($pwd eq ''); require "$pwd/bench-init.pl" || die "Can't read Configuration file: $!\n"; # Avoid warnings for variables in bench-init.pl |