summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/mysqltest_cont_on_error.test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:04:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:04:16 +0000
commita68fb2d8219f6bccc573009600e9f23e89226a5e (patch)
treed742d35d14ae816e99293d2b01face30e9f3a46b /mysql-test/main/mysqltest_cont_on_error.test
parentInitial commit. (diff)
downloadmariadb-10.6-upstream.tar.xz
mariadb-10.6-upstream.zip
Adding upstream version 1:10.6.11.upstream/1%10.6.11upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/main/mysqltest_cont_on_error.test')
-rw-r--r--mysql-test/main/mysqltest_cont_on_error.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/main/mysqltest_cont_on_error.test b/mysql-test/main/mysqltest_cont_on_error.test
new file mode 100644
index 00000000..c6eeca9b
--- /dev/null
+++ b/mysql-test/main/mysqltest_cont_on_error.test
@@ -0,0 +1,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
+