summaryrefslogtreecommitdiff
path: root/mysql-test/t/perror.test
diff options
context:
space:
mode:
authorkostja@bodhi.local <>2006-08-12 21:06:51 +0400
committerkostja@bodhi.local <>2006-08-12 21:06:51 +0400
commit04c97488f91c3db48be384c2ed14082dc6d6616b (patch)
treecccb1fdd583e353f4a229cbb0f9d585104db78f9 /mysql-test/t/perror.test
parentb341356abdfa869c71d42709a13c2192603fab1c (diff)
parent6691c623100134d666b142f5752fcc022bdd1ac9 (diff)
downloadmariadb-git-04c97488f91c3db48be384c2ed14082dc6d6616b.tar.gz
Merge bodhi.local:/opt/local/work/tmp_merge
into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
Diffstat (limited to 'mysql-test/t/perror.test')
-rw-r--r--mysql-test/t/perror.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/perror.test b/mysql-test/t/perror.test
new file mode 100644
index 00000000000..a4b99d8aa22
--- /dev/null
+++ b/mysql-test/t/perror.test
@@ -0,0 +1,19 @@
+#
+# Check if the variable MY_PERROR is set
+#
+--require r/have_perror.require
+disable_query_log;
+eval select LENGTH("$MY_PERROR") > 0 as "have_perror";
+enable_query_log;
+
+--exec $MY_PERROR 150 > /dev/null
+--exec $MY_PERROR --silent 120 > /dev/null
+
+#
+# Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror
+#
+
+# 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 10000 2>&1