diff --git a/mysql-test/r/perror.result b/mysql-test/r/perror.result index 05639197391..4946523bc42 100644 --- a/mysql-test/r/perror.result +++ b/mysql-test/r/perror.result @@ -1 +1 @@ -Illegal error code: 1186 +Illegal error code: 10000 diff --git a/mysql-test/t/perror.test b/mysql-test/t/perror.test index 21297fccd95..a4b99d8aa22 100644 --- a/mysql-test/t/perror.test +++ b/mysql-test/t/perror.test @@ -13,6 +13,7 @@ enable_query_log; # Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror # -# As there is an error code defined for 1186, expect error +# Test with error code 10000 as it's a common "unknown error" +# As there is no error code defined for 10000, expect error --error 1 ---exec $MY_PERROR 1186 2>&1 +--exec $MY_PERROR 10000 2>&1