2010-02-24 08:22:19 +01:00
|
|
|
--source include/not_windows.inc
|
2006-07-24 18:05:00 +02:00
|
|
|
#
|
|
|
|
# Check if the variable MY_PERROR is set
|
|
|
|
#
|
2018-03-09 13:05:35 +01:00
|
|
|
--require include/have_perror.require
|
2006-07-24 18:05:00 +02:00
|
|
|
disable_query_log;
|
|
|
|
eval select LENGTH("$MY_PERROR") > 0 as "have_perror";
|
|
|
|
enable_query_log;
|
|
|
|
|
2006-07-26 14:21:40 +02:00
|
|
|
--exec $MY_PERROR 150 > /dev/null
|
|
|
|
--exec $MY_PERROR --silent 120 > /dev/null
|
2006-07-24 18:05:00 +02:00
|
|
|
|
2006-07-26 14:09:20 +02:00
|
|
|
#
|
|
|
|
# Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror
|
|
|
|
#
|
|
|
|
|
2006-08-01 11:29:10 +02:00
|
|
|
# Test with error code 10000 as it's a common "unknown error"
|
|
|
|
# As there is no error code defined for 10000, expect error
|
2006-07-26 14:21:40 +02:00
|
|
|
--error 1
|
2006-08-01 11:29:10 +02:00
|
|
|
--exec $MY_PERROR 10000 2>&1
|
2010-02-24 01:45:49 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Bug#10143 (Perror not showing error description)
|
|
|
|
#
|
|
|
|
|
|
|
|
# test reported case
|
|
|
|
--exec $MY_PERROR 1062 2>&1
|
|
|
|
|
|
|
|
# test errors that contain characters to escape in the text.
|
2014-01-22 15:29:36 +01:00
|
|
|
--exec $MY_PERROR 1408 2>&1
|
2010-02-24 01:45:49 +01:00
|
|
|
--exec $MY_PERROR 1459 2>&1
|
|
|
|
--exec $MY_PERROR 1461 2>&1
|
|
|
|
|
|
|
|
|