1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-25 13:42:52 +03:00
mariadb/mysql-test/suite/sys_vars/t/thread_stack_basic.test
Marko Mäkelä 94eb56fb29 Give ASAN some more stack
When compiling CMAKE_BUILD_TYPE=Debug WITH_ASAN using clang-7 -O2
the following tests could fail due to insufficient stack size:
main.signal_demo3 sys_vars.max_sp_recursion_depth_func
2019-03-08 10:40:30 +02:00

24 lines
695 B
Plaintext

#
# only global
#
--replace_result 392192 299008
select @@global.thread_stack;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.thread_stack;
--replace_result 392192 299008
show global variables like 'thread_stack';
--replace_result 392192 299008
show session variables like 'thread_stack';
--replace_result 392192 299008
select * from information_schema.global_variables where variable_name='thread_stack';
--replace_result 392192 299008
select * from information_schema.session_variables where variable_name='thread_stack';
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global thread_stack=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session thread_stack=1;