Skip to content

Commit 26c8bc9

Browse files
committed
mtr: make wait_for_line_count_in_file.inc leave traces in the log
1 parent e32d984 commit 26c8bc9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mysql-test/include/wait_for_line_count_in_file.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ perl;
1515
die "Timeout waiting for $search_count lines in $search_file\n";
1616
sleep(0.1);
1717
}
18+
print "Line count in file: $search_count\n";
1819
EOF

mysql-test/suite/plugins/r/server_audit.result

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ ERROR 42000: Variable 'server_audit_excl_users' can't be set to the value of ''r
3434
show variables like 'server_audit_excl_users';
3535
Variable_name Value
3636
server_audit_excl_users
37+
Line count in file: 5
3738
connect con1,localhost,root,,mysql;
3839
disconnect con1;
40+
Line count in file: 7
3941
connect(localhost,no_such_user,,mysql,MASTER_PORT,MASTER_SOCKET);
4042
connect con1,localhost,no_such_user,,mysql;
4143
ERROR 28000: Access denied for user 'no_such_user'@'localhost' (using password: NO)
44+
Line count in file: 9
4245
connection default;
4346
set global server_audit_incl_users='odin, dva, tri';
4447
create table t1 (id int);
@@ -100,6 +103,7 @@ server_audit_syslog_priority LOG_INFO
100103
set global server_audit_mode=1;
101104
set global server_audit_events='';
102105
create database sa_db;
106+
Line count in file: 47
103107
connect con1,localhost,root,,test;
104108
create table t1 (id2 int);
105109
insert into t1 values (1), (2);
@@ -114,6 +118,7 @@ insert into sa_t1 values (1), (2);
114118
drop table sa_t1;
115119
drop database sa_db;
116120
disconnect con1;
121+
Line count in file: 80
117122
connection default;
118123
create database sa_db;
119124
use sa_db;

0 commit comments

Comments
 (0)