diff options
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/show_check.result | 2 | ||||
-rw-r--r-- | mysql-test/r/type_bit.result | 8 | ||||
-rw-r--r-- | mysql-test/t/flush_read_lock_kill-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/type_bit.test | 11 | ||||
-rw-r--r-- | mysql-test/valgrind.supp | 9 | ||||
-rw-r--r-- | mysql-test/valgrind.supp.orig | 189 |
6 files changed, 21 insertions, 200 deletions
diff --git a/mysql-test/r/show_check.result b/mysql-test/r/show_check.result index 8b04155f2b9..73450c9a773 100644 --- a/mysql-test/r/show_check.result +++ b/mysql-test/r/show_check.result @@ -334,7 +334,7 @@ SET sql_quote_show_create= @old_sql_quote_show_create; SET sql_mode= @old_sql_mode; select @@max_heap_table_size; @@max_heap_table_size -1047552 +1048576 CREATE TABLE t1 ( a int(11) default NULL, KEY a USING BTREE (a) diff --git a/mysql-test/r/type_bit.result b/mysql-test/r/type_bit.result index 5c9b70fadc3..cfd3854c200 100644 --- a/mysql-test/r/type_bit.result +++ b/mysql-test/r/type_bit.result @@ -610,4 +610,12 @@ select hex(a), b from t1; hex(a) b 1 2 drop table t1; +create table t1(bit_field bit(2), int_field int, key a(bit_field)); +insert into t1 values (1,2); +handler t1 open as t1; +handler t1 read a=(1); +bit_field int_field + 2 +handler t1 close; +drop table t1; End of 5.0 tests diff --git a/mysql-test/t/flush_read_lock_kill-master.opt b/mysql-test/t/flush_read_lock_kill-master.opt index 2b2b5eb5ebf..61e2b242351 100644 --- a/mysql-test/t/flush_read_lock_kill-master.opt +++ b/mysql-test/t/flush_read_lock_kill-master.opt @@ -1 +1 @@ ---loose-debug=d,make_global_read_lock_block_commit_loop +--loose-debug=+d,make_global_read_lock_block_commit_loop diff --git a/mysql-test/t/type_bit.test b/mysql-test/t/type_bit.test index d46ba667665..48ad24ff6b7 100644 --- a/mysql-test/t/type_bit.test +++ b/mysql-test/t/type_bit.test @@ -261,4 +261,15 @@ insert into t1 (b, a) values ('2', '1'); select hex(a), b from t1; drop table t1; +# +# type was not properly initalized, which caused key_copy to fail +# + +create table t1(bit_field bit(2), int_field int, key a(bit_field)); +insert into t1 values (1,2); +handler t1 open as t1; +handler t1 read a=(1); +handler t1 close; +drop table t1; + --echo End of 5.0 tests diff --git a/mysql-test/valgrind.supp b/mysql-test/valgrind.supp index e88df49a707..17532d2345f 100644 --- a/mysql-test/valgrind.supp +++ b/mysql-test/valgrind.supp @@ -470,15 +470,6 @@ # { - dbug initialization - Memcheck:Leak - fun:malloc - fun:DbugMalloc - fun:ListAdd - fun:_db_set_ -} - -{ dbug initialization by kill_server Memcheck:Leak fun:malloc diff --git a/mysql-test/valgrind.supp.orig b/mysql-test/valgrind.supp.orig deleted file mode 100644 index 1a08abcf953..00000000000 --- a/mysql-test/valgrind.supp.orig +++ /dev/null @@ -1,189 +0,0 @@ -# -# Suppress some common (not fatal) errors in system libraries found by valgrind -# - -# -# Pthread doesn't free all thread specific memory before program exists -# -{ - pthread allocate_tls memory loss - Memcheck:Leak - fun:calloc - fun:_dl_allocate_tls - fun:allocate_stack - fun:pthread_create@@GLIBC_2.1 -} - -{ - pthread allocate_dtv memory loss - Memcheck:Leak - fun:calloc - fun:allocate_dtv - fun:_dl_allocate_tls_storage - fun:__GI__dl_allocate_tls - fun:pthread_create -} - -{ - pthread allocate_dtv memory loss second - Memcheck:Leak - fun:calloc - fun:allocate_dtv - fun:_dl_allocate_tls - fun:pthread_create* -} - -{ - pthread allocate_dtv memory loss second - Memcheck:Leak - fun:calloc - fun:allocate_dtv - fun:_dl_allocate_tls - fun:pthread_create* -} - -{ - pthread memalign memory loss - Memcheck:Leak - fun:memalign - fun:_dl_allocate_tls_storage - fun:__GI__dl_allocate_tls - fun:pthread_create -} - -{ - pthread pthread_key_create - Memcheck:Leak - fun:malloc - fun:* - fun:* - fun:pthread_key_create - fun:my_thread_global_init -} - -{ - pthread strstr uninit - Memcheck:Cond - fun:strstr - obj:/lib/tls/libpthread.so.* - obj:/lib/tls/libpthread.so.* - fun:call_init - fun:_dl_init - obj:/lib/ld-*.so -} - -{ - pthread strstr uninit - Memcheck:Cond - fun:strstr - obj:/lib/tls/libpthread.so.* - obj:/lib/tls/libpthread.so.* - fun:call_init - fun:_dl_init - obj:/lib/ld-*.so -} - -{ - pthread errno - Memcheck:Leak - fun:calloc - fun:_dlerror_run - fun:dlsym - fun:__errno_location -} - - -# -# Warnings in libz becasue it works with aligned memory(?) -# - -{ - libz tr_flush_block - Memcheck:Cond - fun:_tr_flush_block - fun:deflate_slow - fun:deflate - fun:do_flush - fun:gzclose -} - -{ - libz tr_flush_block2 - Memcheck:Cond - fun:_tr_flush_block - fun:deflate_slow - fun:deflate - fun:compress2 -} - -{ - libz longest_match - Memcheck:Cond - fun:longest_match - fun:deflate_slow - fun:deflate - fun:do_flush -} - -{ - libz longest_match2 - Memcheck:Cond - fun:longest_match - fun:deflate_slow - fun:deflate - fun:compress2 -} - -{ - libz deflate - Memcheck:Cond - obj:*/libz.so.* - obj:*/libz.so.* - fun:deflate - fun:compress2 -} - -{ - libz deflate2 - Memcheck:Cond - obj:*/libz.so.* - obj:*/libz.so.* - fun:deflate - obj:*/libz.so.* - 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 -# - -{ - my_thread_init kill thread memory loss second - Memcheck:Leak - fun:calloc - fun:my_thread_init - fun:kill_server_thread -} - -# -# Warning when printing stack trace (to suppress some not needed warnings) -# - -{ - vprintf on stacktrace - Memcheck:Cond - fun:vfprintf - fun:uffered_vfprintf - fun:vfprintf - fun:fprintf - fun:print_stacktrace -} |