Debian Codegraph @

mysql-test/suite/memcached/t/memc252_empty_opts.test

raw
1 --echo #
2 --echo # Bug #28575863 MEMCACHED PLUGIN VARIABLES CRASHES THE SERVER --DAEMON_MEMCACHED_ENGINE_LIB=""
3 --echo #
4 source include/not_valgrind.inc;
5 source include/have_memcached_plugin.inc;
6 source include/not_windows.inc;
7
8 --let SEARCH_FILE = $MYSQLTEST_VARDIR/log/memc252_empty_opts.err
9
10 --let $restart_parameters = restart: $DAEMON_MEMCACHED_OPT --plugin-load=libmemcached.so --daemon_memcached_engine_lib_path="" --daemon_memcached_option="-p11252" --log-error=$SEARCH_FILE
11 --replace_result "$DAEMON_MEMCACHED_OPT" "DAEMON_MEMCACHED_OPT" "$SEARCH_FILE" "SEARCH_FILE"
12 --source include/restart_mysqld.inc
13
14 --let $memcached_address=127.0.0.1:11252
15 --let $memcached_check_attempts=3
16 --let $memcached_expect=error
17 --source ../include/check_daemon_memcached.inc
18
19
20 # TODO: Our current way of error handling causes the plugin to appear as ACTIVE
21 # regardless of daemon_memcached_main() return value (false, 0, NULL, 1, EXIT_SUCCESS)
22 SELECT PLUGIN_STATUS FROM information_schema.plugins WHERE PLUGIN_NAME="daemon_memcached";
23
24 --let SEARCH_PATTERN = Failed to open library "/innodb_engine.so":
25 --source include/search_pattern_multiline.inc
26
27
28 # Clean up
29 let $restart_parameters = restart;
30 --source include/restart_mysqld.inc
31
32 # We don't expect the plugin to be reported here
33 SELECT PLUGIN_STATUS FROM information_schema.plugins WHERE PLUGIN_NAME="daemon_memcached";
34