2
# Check if the variable MY_PERROR is set
4
--require r/have_perror.require
6
eval select LENGTH("$MY_PERROR") > 0 as "have_perror";
9
--exec $MY_PERROR 150 > /dev/null
10
--exec $MY_PERROR --silent 120 > /dev/null
13
# Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror
16
# Test with error code 10000 as it's a common "unknown error"
17
# As there is no error code defined for 10000, expect error
19
--exec $MY_PERROR 10000 2>&1