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/have_debug.inc
9
10 # [Warning] IP address '192.0.2.4' could not be resolved:
11 # Name or service not known
12 call mtr.add_suppression("192.0.2.4");
13
14 # Enforce a clean state
15 --source ../include/wait_for_pfs_thread_count.inc
16 --source ../include/hostcache_set_state.inc
17
18 connect (con1,"127.0.0.1",root,,test,$MASTER_MYPORT,);
19 select "Con1 is alive";
20 select current_user();
21 disconnect con1;
22
23 --connection default
24 set global debug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_format_ipv4";
25
26 --disable_query_log
27 --error ER_HOST_NOT_PRIVILEGED
28 connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,);
29 --enable_query_log
30
31 --connection default
32 --source ../include/hostcache_dump.inc
33
34 --disable_query_log
35 --error ER_HOST_NOT_PRIVILEGED
36 connect (con3,"127.0.0.1",root,,test,$MASTER_MYPORT,);
37 --enable_query_log
38
39 --connection default
40 --source ../include/hostcache_dump.inc
41
42 set global debug= default;
43