From dc91330d9823c2208ab16914aa313cde2edcb1a8 Mon Sep 17 00:00:00 2001 From: Monty Date: Fri, 30 Nov 2018 01:04:55 +0200 Subject: [PATCH] Fixed test case bug in purge_thread_shutdown --- mysql-test/suite/innodb/t/purge_thread_shutdown.test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mysql-test/suite/innodb/t/purge_thread_shutdown.test b/mysql-test/suite/innodb/t/purge_thread_shutdown.test index 8a9a834454c..5be29b7a6a3 100644 --- a/mysql-test/suite/innodb/t/purge_thread_shutdown.test +++ b/mysql-test/suite/innodb/t/purge_thread_shutdown.test @@ -32,7 +32,9 @@ delete from t1 where a=3; error ER_WRONG_VALUE_FOR_VAR; set global innodb_fast_shutdown=0; -let $me=`select connection_id()`; +# Get id with space prefix to ensure that replace_result doesn't replace +# the error code +let $me=`select concat(' ', connection_id())`; replace_result $me ID; error ER_CONNECTION_KILLED; eval kill $me;