summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/sys_vars/t/mdev_32525.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/sys_vars/t/mdev_32525.test')
-rw-r--r--mysql-test/suite/sys_vars/t/mdev_32525.test23
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/suite/sys_vars/t/mdev_32525.test b/mysql-test/suite/sys_vars/t/mdev_32525.test
new file mode 100644
index 00000000..151c7e8d
--- /dev/null
+++ b/mysql-test/suite/sys_vars/t/mdev_32525.test
@@ -0,0 +1,23 @@
+--echo #
+--echo # MDEV-32525 Server startup fails to validate invalid redirect_url
+--echo #
+--source include/not_embedded.inc
+
+let $error_log= $MYSQLTEST_VARDIR/log/mdev_32525.err;
+let SEARCH_FILE= $error_log;
+--source include/shutdown_mysqld.inc
+# Server start should fail with an invalid --redirect_url
+--error 1
+--exec $MYSQLD_LAST_CMD --redirect_url="mariadbaaa://test" > $error_log 2>&1
+let SEARCH_PATTERN= \[ERROR\].*Invalid redirect_url: mariadbaaa://test;
+--source include/search_pattern_in_file.inc
+
+# Test empty --redirect_url to avoid similar problems as in
+# MDEV-32254.
+--let restart_parameter=--redirect_url=
+--source include/start_mysqld.inc
+select @@redirect_url;
+
+--echo #
+--echo # end of test mdev_32525
+--echo #