diff options
author | Michael Widenius <monty@askmonty.org> | 2009-10-02 14:09:01 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2009-10-02 14:09:01 +0300 |
commit | cbf16194caefdf55b83a8544c719eb68f3490dd1 (patch) | |
tree | 6a01cd4e1e2a59d3a4a68cf59d4209d12b5a2efd /mysql-test/t/mysqld_option_err.test | |
parent | f77e2692dcce37e23a643c4e7c83394ea553b5c3 (diff) | |
download | mariadb-git-cbf16194caefdf55b83a8544c719eb68f3490dd1.tar.gz |
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
Diffstat (limited to 'mysql-test/t/mysqld_option_err.test')
-rw-r--r-- | mysql-test/t/mysqld_option_err.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/mysqld_option_err.test b/mysql-test/t/mysqld_option_err.test index 4ff1bcd8cbd..6e4183a6f8c 100644 --- a/mysql-test/t/mysqld_option_err.test +++ b/mysql-test/t/mysqld_option_err.test @@ -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. |