diff options
Diffstat (limited to 'mysql-test/main/connect_debug.test')
-rw-r--r-- | mysql-test/main/connect_debug.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/main/connect_debug.test b/mysql-test/main/connect_debug.test index 299b605b2cd..7a2f2872b79 100644 --- a/mysql-test/main/connect_debug.test +++ b/mysql-test/main/connect_debug.test @@ -1,3 +1,4 @@ +source include/not_embedded.inc; source include/have_debug.inc; set @old_dbug=@@global.debug_dbug; @@ -10,3 +11,13 @@ create user 'bad' identified by 'worse'; --exec $MYSQL --default-auth=mysql_old_password --user=bad --password=worse set global debug_dbug=@old_dbug; drop user bad; + +# +# malicious server, invalid plugin name +# +set global debug_dbug='+d,auth_invalid_plugin'; +create user 'bad' identified by 'worse'; +--error 1 +--exec $MYSQL --default-auth=mysql_old_password --user=bad --password=worse 2>&1 +set global debug_dbug=@old_dbug; +drop user bad; |