diff options
author | Daniel Black <daniel@mariadb.org> | 2021-06-11 14:30:42 +1000 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2021-06-11 14:30:42 +1000 |
commit | 8a2b4d531dc661ee605eeecdfc901bc833f86564 (patch) | |
tree | 5a0a629dbe3c2fd8754d1aa35541e3391aa3518c /mysql-test/main | |
parent | e85df7feac529fd995e9aca61b202d82e06c5c0e (diff) | |
download | mariadb-git-8a2b4d531dc661ee605eeecdfc901bc833f86564.tar.gz |
MDEV-20162: fix connect-abstract test case
The check-testcase record uses a mysqltest connection
to the database to do the recording. With the server configured
as an abstract socket, the mysqltest client cannot connect and
fails.
We work around this by starting the server as normal and then
restart with an abstract socket and test this.
This didn't affect Windows as it just did a tcp connection.
So this did affect all unix socket based systems except Linux
as this was the only one that supported abstract sockets.
Diffstat (limited to 'mysql-test/main')
-rw-r--r-- | mysql-test/main/connect-abstract.cnf | 3 | ||||
-rw-r--r-- | mysql-test/main/connect-abstract.result | 2 | ||||
-rw-r--r-- | mysql-test/main/connect-abstract.test | 5 |
3 files changed, 4 insertions, 6 deletions
diff --git a/mysql-test/main/connect-abstract.cnf b/mysql-test/main/connect-abstract.cnf index 5798c4f2f2a..ed7dbd838f0 100644 --- a/mysql-test/main/connect-abstract.cnf +++ b/mysql-test/main/connect-abstract.cnf @@ -1,9 +1,6 @@ !include include/default_my.cnf -[mysqld.1] -socket= @ENV.ABSTRACT_SOCKET - # Using @OPT.port here for uniqueness [ENV] ABSTRACT_SOCKET= @mtr-test-abstract-socket-@OPT.port diff --git a/mysql-test/main/connect-abstract.result b/mysql-test/main/connect-abstract.result index 68a9674dfaa..8f7c125196a 100644 --- a/mysql-test/main/connect-abstract.result +++ b/mysql-test/main/connect-abstract.result @@ -1,5 +1,3 @@ -connect con1,localhost,root,,test,,$ABSTRACT_SOCKET; select 1; 1 1 -disconnect con1; diff --git a/mysql-test/main/connect-abstract.test b/mysql-test/main/connect-abstract.test index 0f212fe5a0d..09bc607e0e8 100644 --- a/mysql-test/main/connect-abstract.test +++ b/mysql-test/main/connect-abstract.test @@ -1,6 +1,9 @@ --source include/linux.inc --source include/not_embedded.inc +let $restart_parameters=--socket=$ABSTRACT_SOCKET +--source include/kill_mysqld.inc +--source include/start_mysqld.inc + connect(con1,localhost,root,,test,,$ABSTRACT_SOCKET); select 1; -disconnect con1; |