mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 17:54:16 +01:00
79706fd386
- Add additional MTRs for more coverage on invalid options - Updating a few error messages to be more informative - Use the exit code from handle_options() when there is an error processing user options All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
20 lines
1.3 KiB
Text
20 lines
1.3 KiB
Text
Test that unknown option is not silently ignored.
|
|
Test bad binlog format.
|
|
Test bad default storage engine.
|
|
Test non-numeric value passed to number option.
|
|
Test that bad value for plugin enum option is rejected correctly.
|
|
Test to see if multiple unknown options will be displayed in the error output
|
|
FOUND 1 /unknown option '--nonexistentoption2'/ in mysqltest.log
|
|
FOUND 1 /unknown option '--alsononexistent'/ in mysqltest.log
|
|
FOUND 1 /unknown variable 'nonexistentvariable=1'/ in mysqltest.log
|
|
Test to see if multiple ambiguous options and invalid arguments will be displayed in the error output
|
|
FOUND 1 /Error while setting value 'invalid_value' to 'sql_mode'/ in mysqltest.log
|
|
FOUND 1 /ambiguous option '--character'/ in mysqltest.log
|
|
FOUND 1 /option '--bootstrap' cannot take an argument/ in mysqltest.log
|
|
FOUND 1 /Integer value out of range for uint64: '18446744073709551616'/ in mysqltest.log
|
|
FOUND 1 /Error while setting value '18446744073709551616' to 'binlog_cache_size'/ in mysqltest.log
|
|
FOUND 1 /Unknown suffix 'y' used for variable 'bulk_insert_buffer_size' \(value '123y'\). Legal suffix characters are: K, M, G, T, P, E/ in mysqltest.log
|
|
FOUND 1 /Error while setting value '123y' to 'bulk_insert_buffer_size'/ in mysqltest.log
|
|
Test that --help --verbose works
|
|
Test that --not-known-option --help --verbose gives error
|
|
Done.
|