summaryrefslogtreecommitdiff
path: root/mysql-test/main/mysqltest_cont_on_error.test
blob: c6eeca9b5c306999be918c58b4c0b6ebc9c9894f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# mysqltest --continue-on-error
#

-- source include/not_embedded.inc

#
# with or without --continue-on-error the failing test should return an error
# but with --continue-on-error, the failing line does not abort the test
#

--error 1
--exec echo "select error; select 1;" | $MYSQL_TEST 2>&1

--exec echo "SELECT ERROR; SELECT 2;" | $MYSQL_TEST --continue-on-error 2>&1