commit 50e716cd93b560433dde9e063b5f0462ec18f789 Author: zhongbei.yk Date: Thu Sep 26 16:33:13 2024 +0800 Bug #116239 include/assert_grep.inc is wrong Repeat the definition of _AG_ASSERT_COUNT and _ag_assert_count diff --git a/mysql-test/include/assert_grep.inc b/mysql-test/include/assert_grep.inc index c4fe74afb3b..198eb52f24a 100644 --- a/mysql-test/include/assert_grep.inc +++ b/mysql-test/include/assert_grep.inc @@ -73,17 +73,17 @@ if ($assert_match == '') } } ---let $_ag_assert_count = 0 +--let $_ag_arg_count = 0 if ($assert_match != '') { - --inc $_ag_assert_count + --inc $_ag_arg_count } if ($assert_count != '') { - --inc $_ag_assert_count + --inc $_ag_arg_count } if ($assert_count_condition != '') { - --inc $_ag_assert_count + --inc $_ag_arg_count } -if ($_ag_assert_count != 1) { +if ($_ag_arg_count != 1) { --echo assert_text='$assert_text' assert_match='$assert_match' assert_count='$assert_count' assert_count_condition='$assert_count_condition' --die !!!ERROR IN TEST: you must set exactly one of $assert_match, $assert_count or $assert_count_condition }