~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

Viewing changes to mysql-test/suite/perfschema/t/start_server_no_file_class.test

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2011-11-08 11:31:13 UTC
  • Revision ID: package-import@ubuntu.com-20111108113113-3ulw01fvi4vn8m25
Tags: upstream-5.5.17
ImportĀ upstreamĀ versionĀ 5.5.17

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2008-2009 Sun Microsystems, Inc
 
2
#
 
3
# This program is free software; you can redistribute it and/or modify
 
4
# it under the terms of the GNU General Public License as published by
 
5
# the Free Software Foundation; version 2 of the License.
 
6
#
 
7
# This program is distributed in the hope that it will be useful,
 
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
# GNU General Public License for more details.
 
11
#
 
12
# You should have received a copy of the GNU General Public License
 
13
# along with this program; if not, write to the Free Software
 
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
15
 
 
16
# Tests for PERFORMANCE_SCHEMA
 
17
 
 
18
--source include/not_embedded.inc
 
19
--source include/have_perfschema.inc
 
20
 
 
21
--source ../include/start_server_common.inc
 
22
 
 
23
# Expect no classes
 
24
show variables like "performance_schema_max_file_classes";
 
25
 
 
26
select count(*) from performance_schema.setup_instruments
 
27
  where name like "wait/io/file/%";
 
28
 
 
29
# We lost all the classes
 
30
select variable_value > 0 from information_schema.global_status
 
31
  where variable_name like 'PERFORMANCE_SCHEMA_FILE_CLASSES_LOST';
 
32
 
 
33
# Expect no instances
 
34
select count(*) from performance_schema.file_instances;
 
35
 
 
36
# Expect no instances lost
 
37
show status like "performance_schema_file_instances_lost";
 
38