summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition_binlog_stmt.test
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2010-11-24 18:51:31 +0100
committerunknown <knielsen@knielsen-hq.org>2010-11-24 18:51:31 +0100
commitbf5140fb7b6d3080a25ba3f92b65f24dc75223df (patch)
treed9674e832247f77ab91251077557142846ceaeb4 /mysql-test/t/partition_binlog_stmt.test
parentb3ecd245232af191a2a2fd7b75780a404d2b7ddd (diff)
downloadmariadb-git-bf5140fb7b6d3080a25ba3f92b65f24dc75223df.tar.gz
Fix test failure when the mysql-test/ directory is not writable.
Diffstat (limited to 'mysql-test/t/partition_binlog_stmt.test')
-rw-r--r--mysql-test/t/partition_binlog_stmt.test7
1 files changed, 4 insertions, 3 deletions
diff --git a/mysql-test/t/partition_binlog_stmt.test b/mysql-test/t/partition_binlog_stmt.test
index c426de9f303..cc57222dc3c 100644
--- a/mysql-test/t/partition_binlog_stmt.test
+++ b/mysql-test/t/partition_binlog_stmt.test
@@ -8,7 +8,7 @@ DROP TABLE IF EXISTS t1;
--echo #
--echo # Bug#51851: Server with SBR locks mutex twice on LOAD DATA into
--echo # partitioned MyISAM table
---write_file init_file.txt
+--write_file $MYSQLTEST_VARDIR/tmp/init_file.txt
abcd
EOF
@@ -19,8 +19,9 @@ CREATE TABLE t1
INDEX namelocs (name(255))) ENGINE = MyISAM
PARTITION BY HASH(id) PARTITIONS 2;
-LOAD DATA LOCAL INFILE 'init_file.txt'
+--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
+eval LOAD DATA LOCAL INFILE '$MYSQLTEST_VARDIR/tmp/init_file.txt'
INTO TABLE t1 (name);
---remove_file init_file.txt
+--remove_file $MYSQLTEST_VARDIR/tmp/init_file.txt
DROP TABLE t1;