diff options
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/mysql-test-run.sh | 2 | ||||
-rw-r--r-- | mysql-test/r/lock_multi.result | 7 | ||||
-rw-r--r-- | mysql-test/r/ndb_condition_pushdown.result | 2 | ||||
-rw-r--r-- | mysql-test/t/lock_multi.test | 19 | ||||
-rw-r--r-- | mysql-test/t/ndb_condition_pushdown.test | 2 | ||||
-rw-r--r-- | mysql-test/valgrind.supp | 9 |
6 files changed, 38 insertions, 3 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh index 41a9a206306..4485d8ca073 100644 --- a/mysql-test/mysql-test-run.sh +++ b/mysql-test/mysql-test-run.sh @@ -1088,7 +1088,7 @@ report_stats () { found_error=0 # Find errors - for i in "^Warning:" "^Error:" "^==.* at 0x" "InnoDB: Warning" + for i in "^Warning:" "^Error:" "^==.* at 0x" "InnoDB: Warning" "missing DBUG_RETURN" do if $GREP "$i" $MY_LOG_DIR/warnings.tmp >> $MY_LOG_DIR/warnings then diff --git a/mysql-test/r/lock_multi.result b/mysql-test/r/lock_multi.result index 73e3a9d32e3..1ab51e9fad5 100644 --- a/mysql-test/r/lock_multi.result +++ b/mysql-test/r/lock_multi.result @@ -36,6 +36,13 @@ lock table t1 write, t2 write; drop table t2; ERROR 42S02: Table 'test.t2' doesn't exist drop table t1; +create table t1 (a int); +create table t2 (a int); +lock table t1 write, t2 write, t1 as t1_2 write, t2 as t2_2 write; + insert t1 select * from t2; +drop table t2; +ERROR 42S02: Table 'test.t2' doesn't exist +drop table t1; create table t1(a int); lock tables t1 write; show columns from t1; diff --git a/mysql-test/r/ndb_condition_pushdown.result b/mysql-test/r/ndb_condition_pushdown.result index bdeff437f6f..7c70347ec90 100644 --- a/mysql-test/r/ndb_condition_pushdown.result +++ b/mysql-test/r/ndb_condition_pushdown.result @@ -1,4 +1,4 @@ -DROP TABLE IF EXISTS t1,t2; +DROP TABLE IF EXISTS t1,t2,t3,t4; CREATE TABLE t1 ( auto int(5) unsigned NOT NULL auto_increment, string char(10), diff --git a/mysql-test/t/lock_multi.test b/mysql-test/t/lock_multi.test index 0d2266fc2ae..3d07ec98d69 100644 --- a/mysql-test/t/lock_multi.test +++ b/mysql-test/t/lock_multi.test @@ -95,6 +95,25 @@ reap; connection locker; drop table t1; +# +# Same test as above, but with the dropped table locked twice +# + +connection locker; +create table t1 (a int); +create table t2 (a int); +lock table t1 write, t2 write, t1 as t1_2 write, t2 as t2_2 write; +connection reader; +send insert t1 select * from t2; +connection locker; +drop table t2; +connection reader; +--error 1146 +reap; +connection locker; +drop table t1; + + # End of 4.1 tests # diff --git a/mysql-test/t/ndb_condition_pushdown.test b/mysql-test/t/ndb_condition_pushdown.test index 9f512430085..1f28680607a 100644 --- a/mysql-test/t/ndb_condition_pushdown.test +++ b/mysql-test/t/ndb_condition_pushdown.test @@ -2,7 +2,7 @@ -- source include/not_embedded.inc --disable_warnings -DROP TABLE IF EXISTS t1,t2; +DROP TABLE IF EXISTS t1,t2,t3,t4; --enable_warnings # diff --git a/mysql-test/valgrind.supp b/mysql-test/valgrind.supp index bcca7c252ab..69e4ee933b8 100644 --- a/mysql-test/valgrind.supp +++ b/mysql-test/valgrind.supp @@ -153,6 +153,15 @@ fun:gzflush } +{ + libz deflate3 + Memcheck:Cond + obj:*/libz.so.* + obj:*/libz.so.* + fun:deflate + fun:do_flush +} + # # Warning from my_thread_init becasue mysqld dies before kill thread exists # |