~vadim-tk/percona-server/flushing-algo

« back to all changes in this revision

Viewing changes to mysql-test/t/perror.test

  • Committer: root
  • Date: 2011-10-29 01:34:40 UTC
  • Revision ID: root@hppro1.office.percona.com-20111029013440-qhnf4jk8kdjcf4e0
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--source include/not_windows.inc
 
2
#
 
3
# Check if the variable MY_PERROR is set
 
4
#
 
5
--require r/have_perror.require
 
6
disable_query_log;
 
7
eval select LENGTH("$MY_PERROR") > 0 as "have_perror";
 
8
enable_query_log;
 
9
 
 
10
--exec $MY_PERROR 150 > /dev/null
 
11
--exec $MY_PERROR --silent 120 > /dev/null
 
12
 
 
13
#
 
14
# Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror
 
15
#
 
16
 
 
17
# Test with error code 10000 as it's a common "unknown error"
 
18
# As there is no error code defined for 10000, expect error
 
19
--error 1
 
20
--exec $MY_PERROR 10000 2>&1
 
21
 
 
22
#
 
23
# Bug#10143 (Perror not showing error description)
 
24
#
 
25
 
 
26
# test reported case
 
27
--exec $MY_PERROR 1062 2>&1
 
28
 
 
29
# test errors that contain characters to escape in the text.
 
30
--exec $MY_PERROR 1076 2>&1
 
31
--exec $MY_PERROR 1459 2>&1
 
32
--exec $MY_PERROR 1461 2>&1
 
33
 
 
34