2
# Bug#39438 Testcase for Bug#39436 crashes on 5.1 in fil_space_get_latch
3
# http://bugs.mysql.com/39438
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.
11
SET storage_engine=InnoDB;
13
# we care only that the following SQL commands do not crash the server
15
DROP TABLE IF EXISTS bug39438;
17
CREATE TABLE bug39438 (id INT) ENGINE=INNODB;
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 @@
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
37
# remove: + # this test is expected to print warnings
38
# remove: + ($testname eq 'main.innodb_bug39438')
41
# remove: next; # Skip these lines
43
#ALTER TABLE bug39438 DISCARD TABLESPACE;
45
# this crashes the server if the bug is present