summaryrefslogtreecommitdiff
path: root/sql-bench/test-select.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sql-bench/test-select.sh')
-rw-r--r--sql-bench/test-select.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql-bench/test-select.sh b/sql-bench/test-select.sh
index 8981fa49cff..63f70b0aaa1 100644
--- a/sql-bench/test-select.sh
+++ b/sql-bench/test-select.sh
@@ -20,6 +20,7 @@
#
##################### Standard benchmark inits ##############################
+use Cwd;
use DBI;
use Getopt::Long;
use Benchmark;
@@ -30,7 +31,7 @@ $opt_small_loop_count=10;
$opt_regions=6;
$opt_groups=100;
-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";
$columns=min($limits->{'max_columns'},500,($limits->{'query_size'}-50)/24,