1
by brian
clean slate |
1 |
#
|
2 |
# Check if the variable MY_PERROR is set
|
|
3 |
#
|
|
4 |
--require r/have_perror.require |
|
5 |
disable_query_log; |
|
6 |
eval select LENGTH("$MY_PERROR") > 0 as "have_perror"; |
|
7 |
enable_query_log; |
|
8 |
||
9 |
--exec $MY_PERROR 150 > /dev/null |
|
10 |
--exec $MY_PERROR --silent 120 > /dev/null |
|
11 |
||
12 |
#
|
|
13 |
# Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror
|
|
14 |
#
|
|
15 |
||
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
|
|
18 |
--error 1 |
|
19 |
--exec $MY_PERROR 10000 2>&1 |