summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <reggie@linux.site>2006-01-25 21:54:43 -0600
committerunknown <reggie@linux.site>2006-01-25 21:54:43 -0600
commit375afff3bd9d427921c81c3f190789b96c9c83ee (patch)
tree9a2d0d76594dfd99a5df141e1de2c8e0b74d535e /mysql-test
parent456524c0608c0fdbf61c585b2bd5dea57e861ef2 (diff)
downloadmariadb-git-375afff3bd9d427921c81c3f190789b96c9c83ee.tar.gz
fixed test issues with bug #14354. I had mistakenly included
/var/tmp in my path when testing data diretory. the var directory exists in a src tree but may not exist in a different testing build setup. mysql-test/r/partition_mgm_err.result: added a row insert just to make sure the data and index files are made mysql-test/t/partition_mgm_err.test: removed the /var/tmp path elements since there is not guarantee that other build setups will include this path
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/partition_mgm_err.result2
-rw-r--r--mysql-test/t/partition_mgm_err.test15
2 files changed, 10 insertions, 7 deletions
diff --git a/mysql-test/r/partition_mgm_err.result b/mysql-test/r/partition_mgm_err.result
index 38a69e93536..4129a1e61d8 100644
--- a/mysql-test/r/partition_mgm_err.result
+++ b/mysql-test/r/partition_mgm_err.result
@@ -112,6 +112,8 @@ ALTER TABLE t1 DROP PARTITION x1;
ALTER TABLE t1 DROP PARTITION x0;
ERROR HY000: Cannot remove all partitions, use DROP TABLE instead
DROP TABLE t1;
+INSERT INTO t1 VALUES (15);
+DROP TABLE t1;
CREATE TABLE t1 ( id INT NOT NULL,
fname VARCHAR(50) NOT NULL,
lname VARCHAR(50) NOT NULL,
diff --git a/mysql-test/t/partition_mgm_err.test b/mysql-test/t/partition_mgm_err.test
index cbecac96afb..793968c87f3 100644
--- a/mysql-test/t/partition_mgm_err.test
+++ b/mysql-test/t/partition_mgm_err.test
@@ -171,18 +171,19 @@ DROP TABLE t1;
#
# BUG: 14354 Partitions: data directory clause fails
#
---exec rm -rf $MYSQL_TEST_DIR/var/tmp/bug14354
---exec mkdir $MYSQL_TEST_DIR/var/tmp/bug14354
+--exec rm -rf $MYSQL_TEST_DIR/bug14354
+--exec mkdir $MYSQL_TEST_DIR/bug14354
disable_query_log;
eval CREATE TABLE t1 (id int) PARTITION BY RANGE(id) (
PARTITION p1 VALUES LESS THAN (20) ENGINE=myiasm
-DATA DIRECTORY="$MYSQL_TEST_DIR/var/tmp/bug14354"
-INDEX DIRECTORY="$MYSQL_TEST_DIR/var/tmp/bug14354");
+DATA DIRECTORY="$MYSQL_TEST_DIR/bug14354"
+INDEX DIRECTORY="$MYSQL_TEST_DIR/bug14354");
enable_query_log;
---exec test -f $MYSQL_TEST_DIR/var/tmp/bug14354/t1_p1.MYD
---exec test -f $MYSQL_TEST_DIR/var/tmp/bug14354/t1_p1.MYI
+INSERT INTO t1 VALUES (15);
+--exec test -f $MYSQL_TEST_DIR/bug14354/t1#P#p1.MYD
+--exec test -f $MYSQL_TEST_DIR/bug14354/t1#P#p1.MYI
DROP TABLE t1;
---exec rm -rf $MYSQL_TEST_DIR/var/tmp/bug14354
+--exec rm -rf $MYSQL_TEST_DIR/bug14354
#
# Bug# 16534 - Trying to add multiple partitions crashes server