config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/x/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : /home/usr.opt/mysql57/mysql-test/suite/x/t/connection_reset_by_peer.test

## Test cases for connections reset by client

--source ../include/xplugin_preamble.inc


## Test starts here

--let $xtest_file= $MYSQL_TMP_DIR/connection_reset_by_peer.tmp
--write_file $xtest_file
-->quiet

-->macro Long_run	%PROC_NAME%	%TABLE_NAME%
-->newsession next_ses	root
-->stmtsql SELECT COUNT(*) FROM information_schema.processlist
-->recvresult

-->sql
DELIMITER //
CREATE PROCEDURE %PROC_NAME%() 
BEGIN
  REPEAT
    SELECT * FROM %TABLE_NAME%;
  UNTIL FALSE END REPEAT;
END
//
DELIMITER ;

-->endsql

-->stmtsql call %PROC_NAME%();
-->recv quiet

-->closesession abort

-->wait_for 2	SELECT COUNT(*) FROM information_schema.processlist 

-->stmtadmin list_clients
-->recvresult client_id user host
-->endmacro


-->callmacro Long_run	xtest.long1	mysql.user
-->callmacro Long_run	xtest.long2	xtest.empty


EOF


CREATE SCHEMA xtest;
CREATE TABLE xtest.empty(a INT, b FLOAT);


--exec $MYSQLXTEST -uroot --file=$xtest_file 2>&1


# Postamble
--remove_file $xtest_file

DROP SCHEMA IF EXISTS xtest;
UNINSTALL PLUGIN mysqlx;



Man Man