mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
When using --help --verbose give error and abort if there are any unknown options
mysql-test/r/mysqld_option_err.result: Test that mysqld --not-known-option --help --verbose gives error mysql-test/t/mysqld_option_err.test: Test that mysqld --not-known-option --help --verbose gives error
This commit is contained in:
@ -46,5 +46,14 @@ mkdir $MYSQLTEST_VARDIR/tmp/mysqld_option_err;
|
||||
--error 7
|
||||
--exec $MYSQLD --skip-networking --datadir=$MYSQLTEST_VARDIR/tmp/mysqld_option_err --skip-grant-tables $EXAMPLE_PLUGIN_OPT --plugin-load=EXAMPLE=ha_example.so --plugin-example-enum-var=noexist >>$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
|
||||
|
||||
#
|
||||
# Test that an wrong option with --help --verbose gives an error
|
||||
#
|
||||
|
||||
--echo Test that --help --verbose works
|
||||
--exec $MYSQLD --help --verbose >>$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
|
||||
--echo Test that --not-known-option --help --verbose gives error
|
||||
--error 2
|
||||
--exec $MYSQLD --not-known-option --help --verbose >>$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
|
||||
|
||||
--echo Done.
|
||||
|
Reference in New Issue
Block a user