Debian Codegraph @

mysql-test/suite/plugins/t/audit_null_debug.test

raw
1 --source include/have_debug.inc
2 --source include/not_embedded.inc
3
4 if (!$ADT_NULL_SO) {
5 skip No NULL_AUDIT plugin;
6 }
7
8 alter table mysql.plugin engine=myisam;
9
10 set @old_dbug=@@debug_dbug;
11 call mtr.add_suppression("Index for table.*mysql.plugin.MYI");
12 call mtr.add_suppression("Index for table 'plugin' is corrupt; try to repair it");
13
14 #
15 # MySQL BUG#14485479 - INSTALL AUDIT PLUGIN HANGS IF WE TRY TO DISABLE AND ENABLED DURING DDL OPERATION
16 # (a.k.a. audit event caused by the table access during audit plugin initialization)
17 #
18 SET debug_dbug='+d,myisam_pretend_crashed_table_on_usage';
19 --replace_result \\ /
20 --error 126
21 install plugin audit_null soname 'adt_null';
22 SET debug_dbug=@old_dbug;
23
24 install plugin audit_null soname 'adt_null';
25 SET debug_dbug='+d,myisam_pretend_crashed_table_on_usage';
26 --replace_result \\ /
27 --error 126
28 uninstall plugin audit_null;
29 SET debug_dbug=@old_dbug;
30
31 uninstall plugin audit_null;
32 --error ER_SP_DOES_NOT_EXIST
33 uninstall plugin audit_null;
34
35 delete from mysql.plugin where name='audit_null';
36 alter table mysql.plugin engine=aria;