summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-08-01 11:29:10 +0200
committerunknown <msvensson@neptunus.(none)>2006-08-01 11:29:10 +0200
commit8b3ef8c11c5093fe86debbd19ccb910c75809535 (patch)
treec28a7f09f64edbb352a315d63fccd0f3ee1358e7
parentf8497a162491a9020422913cee3d0e8ffae9c6e5 (diff)
downloadmariadb-git-8b3ef8c11c5093fe86debbd19ccb910c75809535.tar.gz
Change error code to test for "unknown error" with to 10000
-rw-r--r--mysql-test/r/perror.result2
-rw-r--r--mysql-test/t/perror.test5
2 files changed, 4 insertions, 3 deletions
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