summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_slave_status.test
diff options
context:
space:
mode:
authorunknown <sasha@asksasha.com>2005-07-28 19:10:49 -0600
committerunknown <sasha@asksasha.com>2005-07-28 19:10:49 -0600
commit26547b33c3ab9d05e59a3255785387dd3d30426f (patch)
tree36f3af6df132eca27b22e8be32c2bdd5db27e7ed /mysql-test/t/rpl_slave_status.test
parentfa7ed076d4453b91b6a50160e8a31ecd726550f4 (diff)
downloadmariadb-git-26547b33c3ab9d05e59a3255785387dd3d30426f.tar.gz
testcase for bug 10780 was not added in the previous commit
mysql-test/t/rpl_slave_status.test: New BitKeeper file ``mysql-test/t/rpl_slave_status.test''
Diffstat (limited to 'mysql-test/t/rpl_slave_status.test')
-rw-r--r--mysql-test/t/rpl_slave_status.test28
1 files changed, 28 insertions, 0 deletions
diff --git a/mysql-test/t/rpl_slave_status.test b/mysql-test/t/rpl_slave_status.test
new file mode 100644
index 00000000000..6bccf6fd341
--- /dev/null
+++ b/mysql-test/t/rpl_slave_status.test
@@ -0,0 +1,28 @@
+# Test case for BUG #10780
+source include/master-slave.inc
+connection master;
+grant replication slave on *.* to rpl@127.0.0.1 identified by 'rpl';
+connection slave;
+stop slave;
+change master to master_user='rpl',master_password='rpl';
+start slave;
+connection master;
+--disable_warnings
+drop table if exists t1;
+--enable_warning
+create table t1 (n int);
+insert into t1 values (1);
+save_master_pos;
+connection slave;
+sync_with_master;
+select * from t1;
+connection master;
+delete from mysql.user where user='rpl';
+flush privileges;
+connection slave;
+stop slave;
+start slave;
+--replace_result $MASTER_MYPORT MASTER_MYPORT
+show slave status;
+
+# end of 4.1 tests