~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/mysql-test/innodb_bug39438.test

Merge Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Bug#39438 Testcase for Bug#39436 crashes on 5.1 in fil_space_get_latch
3
 
# http://bugs.mysql.com/39438
4
 
#
5
 
# This test must be run with innodb_file_per_table=1 because the crash
6
 
# only occurs if that option is turned on and DISCARD TABLESPACE only
7
 
# works with innodb_file_per_table.
8
 
#
9
 
 
10
 
 
11
 
SET storage_engine=InnoDB;
12
 
 
13
 
# we care only that the following SQL commands do not crash the server
14
 
 
15
 
DROP TABLE IF EXISTS bug39438;
16
 
 
17
 
CREATE TABLE bug39438 (id INT) ENGINE=INNODB;
18
 
 
19
 
# remove: XXX Uncomment the following ALTER and remove those lines after
20
 
# remove: applying the patch.
21
 
# remove: Obviously this test is useless without this ALTER command,
22
 
# remove: but it causes warnings to be printed by mysqld and the whole
23
 
# remove: mysql-test suite fails at the end (returns non-zero). Please
24
 
# remove: apply this patch to the mysql source tree, remove those lines
25
 
# remove: and uncomment the following ALTER. We do not care about the
26
 
# remove: warnings, this test is to ensure mysqld does not crash.
27
 
# remove: === modified file 'mysql-test/lib/mtr_report.pl'
28
 
# remove: --- mysql-test/lib/mtr_report.pl      2008-08-12 10:26:23 +0000
29
 
# remove: +++ mysql-test/lib/mtr_report.pl      2008-10-01 11:57:41 +0000
30
 
# remove: @@ -412,7 +412,10 @@
31
 
# remove:  
32
 
# remove:                  # When trying to set lower_case_table_names = 2
33
 
# remove:                  # on a case sensitive file system. Bug#37402.
34
 
# remove: -                /lower_case_table_names was set to 2, even though your the file system '.*' is case sensitive.  Now setting lower_case_table_names to 0 to avoid future problems./
35
 
# remove: +                /lower_case_table_names was set to 2, even though your the file system '.*' is case sensitive.  Now setting lower_case_table_names to 0 to avoid future problems./ or
36
 
# remove: +
37
 
# remove: +                # this test is expected to print warnings
38
 
# remove: +                ($testname eq 'main.innodb_bug39438')
39
 
# remove:               )
40
 
# remove:              {
41
 
# remove:                next;                       # Skip these lines
42
 
# remove: 
43
 
#ALTER TABLE bug39438 DISCARD TABLESPACE;
44
 
 
45
 
# this crashes the server if the bug is present
46
 
SHOW TABLE STATUS;
47
 
 
48
 
DROP TABLE bug39438;