~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/inc/partition_crash.inc

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Include file to decrease test code duplication
 
2
 
 
3
--eval $create_statement
 
4
--eval $insert_statement
 
5
--echo # State before crash
 
6
--replace_result #p# #P# #sp# #SP#
 
7
--list_files $DATADIR/test
 
8
SHOW CREATE TABLE t1;
 
9
--sorted_result
 
10
SELECT * FROM t1;
 
11
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
 
12
--disable_reconnect
 
13
# CR_SERVER_LOST
 
14
--error 2013
 
15
--eval $crash_statement
 
16
--echo # State after crash (before recovery)
 
17
--replace_regex /sqlx.*\./sqlx-nnnn_nnnn./ /#p#/#P#/ /#sp#/#SP#/ /#tmp#/#TMP#/
 
18
--list_files $DATADIR/test
 
19
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
 
20
--enable_reconnect
 
21
let $WAIT_COUNT=6000;
 
22
--source include/wait_time_until_connected_again.inc
 
23
--echo # State after crash recovery
 
24
--replace_result #p# #P# #sp# #SP#
 
25
--list_files $DATADIR/test
 
26
SHOW CREATE TABLE t1;
 
27
--sorted_result
 
28
SELECT * FROM t1;
 
29
DROP TABLE t1;