--source include/have_component_keyring_file.inc --source include/windows.inc --echo # --echo # Bug #32950322: SERVER GIVES ERROR WHILE LOADING COMPONENT ON WINDOWS --echo # --echo # ---------------------------------------------------------------------- --echo # Setup --let PLUGIN_DIR_OPT = $KEYRING_FILE_COMPONENT_OPT # Data directory location --let CURRENT_DATADIR = `SELECT @@datadir` --let COMPONENT_LIBRARY = `SELECT SUBSTRING_INDEX('$KEYRING_FILE_COMPONENT_LOAD', '=', -1)` --let COMPONENT_DIR = $KEYRING_FILE_COMPONENT_DIR --let COMPONENT_NAME = `SELECT SUBSTRING_INDEX('$COMPONENT_LIBRARY', '.', 1)` # Create local keyring config --let KEYRING_FILE_PATH = `SELECT CONCAT( '$MYSQLTEST_VARDIR', '/keyring_file')` --let KEYRING_CONFIG_CONTENT = `SELECT CONCAT('{ \"path\": \"', '$KEYRING_FILE_PATH','\", \"read_only\": false }')` --source include/keyring_tests/helper/local_keyring_create_config.inc # Create local windows line ending manifest file for current server instance --let LOCAL_MANIFEST_CONTENT = `SELECT CONCAT('{\r\n \"components\": \"file://', '$COMPONENT_NAME', '\"\r\n }\r\n')` --source include/keyring_tests/helper/instance_create_manifest.inc # Restart server with manifest file --source include/keyring_tests/helper/start_server_with_manifest.inc --echo # ---------------------------------------------------------------------- # Success criteria: should not produce warnings and should load the component --let $expected_errors=0 --let $assert_text= Expect MY-013709 to appear $expected_error times. -- let $assert_cond= [SELECT COUNT(*) as received_errors FROM performance_schema.error_log WHERE error_code="MY-013709", received_errors, 1] = $expected_errors --source include/assert.inc --source ../inc/teardown_component.inc