~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_slave_load_tmpdir_not_exist.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##########################################################################
 
2
# This test verifies if the start slave fails gracefuly when an 
 
3
# invalid directory is used to set --slave-load-tmpdir.
 
4
##########################################################################
 
5
--source include/have_log_bin.inc
 
6
--source include/not_embedded.inc
 
7
 
 
8
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,);
 
9
connect (master1,127.0.0.1,root,,test,$MASTER_MYPORT,);
 
10
connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,);
 
11
connect (slave1,127.0.0.1,root,,test,$SLAVE_MYPORT,);
 
12
 
 
13
connection slave;
 
14
 
 
15
--replace_result $MASTER_MYPORT MASTER_MYPORT
 
16
eval CHANGE MASTER TO MASTER_USER='root',
 
17
                      MASTER_CONNECT_RETRY=1,
 
18
                      MASTER_HOST='127.0.0.1',
 
19
                      MASTER_PORT=$MASTER_MYPORT;
 
20
START SLAVE;
 
21
 
 
22
source include/wait_for_slave_sql_to_stop.inc;
 
23
let $errno=query_get_value("show slave status", Last_SQL_Errno, 1);
 
24
echo $errno;