--source include/have_innodb.inc
# bool readonly

#
# show values;
#
select @@global.innodb_fatal_semaphore_wait_threshold;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_fatal_semaphore_wait_threshold;
show global variables like 'innodb_fatal_semaphore_wait_threshold';
show session variables like 'innodb_fatal_semaphore_wait_threshold';
select * from information_schema.global_variables where variable_name='innodb_fatal_semaphore_wait_threshold';
select * from information_schema.session_variables where variable_name='innodb_fatal_semaphore_wait_threshold';

#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global innodb_fatal_semaphore_wait_threshold=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session innodb_fatal_semaphore_wait_threshold=1;
