Debian Codegraph @

mysql-test/suite/perfschema/t/hostcache_ipv4_format.test

raw
1
2 #
3 # Tests for the performance_schema host_cache.
4 #
5 # Simulate failures from host names formats:
6 # - reported in COUNT_FORMAT_ERRORS
7
8 --source include/not_embedded.inc
9 --source include/have_debug.inc
10 --source include/have_perfschema.inc
11 --source include/have_hostname_cache.inc
12
13 # [Warning] IP address '192.0.2.4' could not be resolved:
14 # Name or service not known
15 call mtr.add_suppression("192.0.2.4");
16
17 # Enforce a clean state
18 --source ../include/wait_for_pfs_thread_count.inc
19 --source ../include/hostcache_set_state.inc
20
21 connect (con1,"127.0.0.1",root,,test,$MASTER_MYPORT,);
22 select "Con1 is alive";
23 select current_user();
24 disconnect con1;
25
26 --connection default
27 SET @saved_dbug = @@GLOBAL.debug_dbug;
28 set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_format_ipv4";
29
30 --disable_query_log
31 --error ER_HOST_NOT_PRIVILEGED
32 connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,);
33 --enable_query_log
34
35 --connection default
36 --source ../include/hostcache_dump.inc
37
38 --disable_query_log
39 --error ER_HOST_NOT_PRIVILEGED
40 connect (con3,"127.0.0.1",root,,test,$MASTER_MYPORT,);
41 --enable_query_log
42
43 --connection default
44 --source ../include/hostcache_dump.inc
45
46 SET @@GLOBAL.debug_dbug = @saved_dbug;
47