~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/drizzleadmin.test

  • Committer: Andrew Hutchings
  • Date: 2010-11-14 14:46:36 UTC
  • mto: (1931.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1932.
  • Revision ID: andrew@linuxjedi.co.uk-20101114144636-bkttapbfpp20ccd2
Fix broken Global Status test
Fix some stats not reset
Cleanup code a little

Note: local session stats are not reset, they will be added to the global stats after flush if any query is executed on those sessions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Test uses max-connections of 2 to test drizzleadmin override of this setting
2
 
# along with admin-ip-address of 127.0.0.1
3
 
 
4
 
connect (con1,localhost,root,,);
5
 
# This next one should hit max-connections limit
6
 
--disable_query_log
7
 
--error 1040
8
 
connect (con2,localhost,root,,);
9
 
--enable_query_log
10
 
 
11
 
# This should override max-connections and give an admin error
12
 
--error 1
13
 
--exec $DRIZZLE_ADMIN -e "SELECT 1;"