summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2008-11-27 16:33:40 +0400
committerSergey Glukhov <Sergey.Glukhov@sun.com>2008-11-27 16:33:40 +0400
commitfbbdb613d77a673b225d23c46a84bb90520a5df0 (patch)
tree58c2febb8434704cc53cf2ee033af06ca4486d92 /mysql-test
parentbc08b15849253add23ebfe7918e687c49f31f044 (diff)
downloadmariadb-git-fbbdb613d77a673b225d23c46a84bb90520a5df0.tar.gz
Bug#34825 perror on windows doesn't know about win32 error codes
extended perror to enable printing of Win32 system errors extra/perror.c: extended perror to enable printing of Win32 system errors mysql-test/r/perror-win.result: test result mysql-test/t/perror-win.test: test case
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/perror-win.result5
-rw-r--r--mysql-test/t/perror-win.test11
2 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/perror-win.result b/mysql-test/r/perror-win.result
new file mode 100644
index 00000000000..61e6fcaab4e
--- /dev/null
+++ b/mysql-test/r/perror-win.result
@@ -0,0 +1,5 @@
+MySQL error code 150: Foreign key constraint is incorrectly formed
+Win32 error code 150: System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
+OS error code 23: Too many open files in system
+Win32 error code 23: Data error (cyclic redundancy check).
+Win32 error code 15000: The specified channel path is invalid.
diff --git a/mysql-test/t/perror-win.test b/mysql-test/t/perror-win.test
new file mode 100644
index 00000000000..56615e72a5a
--- /dev/null
+++ b/mysql-test/t/perror-win.test
@@ -0,0 +1,11 @@
+# Windows-specific tests
+--source include/windows.inc
+--require r/have_perror.require
+disable_query_log;
+eval select LENGTH("$MY_PERROR") > 0 as "have_perror";
+enable_query_log;
+
+
+--exec $MY_PERROR 150
+--exec $MY_PERROR 23
+--exec $MY_PERROR 15000