Skip to content

Commit 3f53fce

Browse files
author
H N Mohan Kumar
committed
Bug#37105430 : Contribution: include/assert_grep.inc is wrong
Contributed by Ke Yu Issue ====== assert_grep.inc does not match the assert_count with the expected count. Fix ====== Updated assert_grep.inc and renamed $_ag_assert_count to $_ag_arg_count so that the number of arguments passed to assert_grep.inc is not mistaken for assert_count. Change-Id: I6b91a7bd0c614761c7fad2e43d10b258327f0033
1 parent d7a7b83 commit 3f53fce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mysql-test/include/assert_grep.inc

+5-5
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ if ($assert_match == '')
7373
}
7474
}
7575

76-
--let $_ag_assert_count = 0
76+
--let $_ag_arg_count = 0
7777
if ($assert_match != '') {
78-
--inc $_ag_assert_count
78+
--inc $_ag_arg_count
7979
}
8080
if ($assert_count != '') {
81-
--inc $_ag_assert_count
81+
--inc $_ag_arg_count
8282
}
8383
if ($assert_count_condition != '') {
84-
--inc $_ag_assert_count
84+
--inc $_ag_arg_count
8585
}
86-
if ($_ag_assert_count != 1) {
86+
if ($_ag_arg_count != 1) {
8787
--echo assert_text='$assert_text' assert_match='$assert_match' assert_count='$assert_count' assert_count_condition='$assert_count_condition'
8888
--die !!!ERROR IN TEST: you must set exactly one of $assert_match, $assert_count or $assert_count_condition
8989
}

0 commit comments

Comments
 (0)