~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Check if the variable MY_PERROR is set
 
3
#
 
4
--require r/have_perror.require
 
5
disable_query_log;
 
6
eval select LENGTH("$MY_PERROR") > 0 as "have_perror";
 
7
enable_query_log;
 
8
 
 
9
--exec $MY_PERROR 150 > /dev/null
 
10
--exec $MY_PERROR --silent 120 > /dev/null
 
11
 
 
12
#
 
13
# Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror
 
14
#
 
15
 
 
16
# Test with error code 10000 as it's a common "unknown error"
 
17
# As there is no error code defined for 10000, expect error
 
18
--error 1
 
19
--exec $MY_PERROR 10000 2>&1