~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/binlog/t/binlog_index.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# Don't test this under valgrind, memory leaks will occur
7
7
--source include/not_valgrind.inc
8
8
source include/have_debug.inc;
 
9
# Avoid CrashReporter popup on Mac
 
10
--source include/not_crashrep.inc
9
11
call mtr.add_suppression('Attempting backtrace');
10
12
call mtr.add_suppression('MSYQL_BIN_LOG::purge_logs failed to process registered files that would be purged.');
11
13
call mtr.add_suppression('MSYQL_BIN_LOG::open failed to sync the index file');
12
14
call mtr.add_suppression('Turning logging off for the whole duration of the MySQL server process.');
 
15
call mtr.add_suppression('Could not open .*');
13
16
call mtr.add_suppression('MSYQL_BIN_LOG::purge_logs failed to clean registers before purging logs.');
14
17
let $old=`select @@debug`;
15
18
 
 
19
RESET MASTER;
 
20
 
16
21
let $MYSQLD_DATADIR= `select @@datadir`;
17
22
let $INDEX=$MYSQLD_DATADIR/master-bin.index;
18
23
 
205
210
--echo # This should put the server in unsafe state and stop
206
211
--echo # accepting any command. If we inject a fault at this
207
212
--echo # point and continue the execution the server crashes.
208
 
--echo # Besides the flush command does not report an error.
209
213
--echo #
210
214
 
 
215
--chmod 0644 $INDEX
 
216
-- replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
 
217
-- eval SET @index=LOAD_FILE('$index')
 
218
-- replace_regex /\.[\\\/]master/master/
 
219
SELECT @index;
 
220
 
211
221
--echo # fault_injection_registering_index
212
222
SET SESSION debug="+d,fault_injection_registering_index";
 
223
-- replace_regex /\.[\\\/]master/master/
 
224
-- error ER_CANT_OPEN_FILE
213
225
flush logs;
 
226
 
 
227
--chmod 0644 $INDEX
 
228
-- replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
 
229
-- eval SET @index=LOAD_FILE('$index')
 
230
-- replace_regex /\.[\\\/]master/master/
 
231
SELECT @index;
 
232
 
214
233
--source include/restart_mysqld.inc
215
234
 
216
235
--chmod 0644 $INDEX
221
240
 
222
241
--echo # fault_injection_updating_index
223
242
SET SESSION debug="+d,fault_injection_updating_index";
 
243
-- replace_regex /\.[\\\/]master/master/
 
244
-- error ER_CANT_OPEN_FILE
224
245
flush logs;
 
246
 
 
247
--chmod 0644 $INDEX
 
248
-- replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
 
249
-- eval SET @index=LOAD_FILE('$index')
 
250
-- replace_regex /\.[\\\/]master/master/
 
251
SELECT @index;
 
252
 
225
253
--source include/restart_mysqld.inc
226
254
 
227
255
--chmod 0644 $INDEX