summaryrefslogtreecommitdiff
path: root/sql-bench/innotest2a.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sql-bench/innotest2a.sh')
-rw-r--r--sql-bench/innotest2a.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql-bench/innotest2a.sh b/sql-bench/innotest2a.sh
index e0fe2001d24..3d4bb9933da 100644
--- a/sql-bench/innotest2a.sh
+++ b/sql-bench/innotest2a.sh
@@ -5,12 +5,13 @@
#
############################################################################
+use Cwd;
use DBI;
use Benchmark;
$opt_loop_count = 100000;
-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";
print "Innotest2a: MySQL/InnoDB stress test in Perl for FOREIGN keys\n";