~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/t/partition_recover_myisam.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# test the auto-recover (--myisam-recover) of partitioned myisam tables
2
2
 
3
 
call mtr.add_suppression("./test/t1_will_crash");
 
3
call mtr.add_suppression("t1_will_crash");
4
4
call mtr.add_suppression("Got an error from unknown thread, ha_myisam.cc");
5
5
 
6
6
--source include/have_partition.inc
20
20
let $MYSQLD_DATADIR= `select @@datadir`;
21
21
--remove_file $MYSQLD_DATADIR/test/t1_will_crash.MYI
22
22
--copy_file std_data/corrupt_t1.MYI $MYSQLD_DATADIR/test/t1_will_crash.MYI
 
23
--replace_result \\ /
 
24
--replace_regex /Table '.*data/Table './
23
25
SELECT * FROM t1_will_crash;
24
26
DROP TABLE t1_will_crash;
25
27
CREATE TABLE t1_will_crash (a INT, KEY (a))
33
35
--echo # head -c1024 t1#P#p1.MYI > corrupt_t1#P#p1.MYI 
34
36
--remove_file $MYSQLD_DATADIR/test/t1_will_crash#P#p1.MYI
35
37
--copy_file std_data/corrupt_t1#P#p1.MYI $MYSQLD_DATADIR/test/t1_will_crash#P#p1.MYI
 
38
--replace_result \\ /
 
39
--replace_regex /Table '.*data/Table './
36
40
SELECT * FROM t1_will_crash;
37
41
DROP TABLE t1_will_crash;