Skip to content
Browse files

Fix test for expired password.

Followup of 02bf903
  • Loading branch information...
9EOR9 committed Feb 11, 2019
1 parent 2c5aebb commit a1469b407a2494baeed3aa155a1e1f525003d110
Showing with 4 additions and 0 deletions.
  1. +4 −0 unittest/libmariadb/connection.c
@@ -1345,6 +1345,10 @@ static int test_expired_pw(MYSQL *my)
my_test_connect(mysql, hostname, "foo", "foo", schema,
port, socketname, 0);

/* we should be in sandbox mode now, only set commands should be allowed */
rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1");
FAIL_IF(!rc, "Error expected (we are in sandbox mode");

diag("error: %d %s", mysql_errno(mysql), mysql_error(mysql));
FAIL_IF(mysql_errno(mysql) != ER_MUST_CHANGE_PASSWORD &&
mysql_errno(mysql) != ER_MUST_CHANGE_PASSWORD_LOGIN, "Error 1820/1862 expected");

0 comments on commit a1469b4

Please sign in to comment.
You can’t perform that action at this time.