| 1 |
# ==== Purpose ==== |
| 2 |
# |
| 3 |
# Used by scripts testing XA crash recovery, it checks that the table used |
| 4 |
# in those tests has a record count equal to the parameter. |
| 5 |
# |
| 6 |
# ==== Parameters ==== |
| 7 |
# |
| 8 |
# $expected_row_count |
| 9 |
# The expected record count in the table used in XA crash safe tests. |
| 10 |
# |
| 11 |
# For other parameters, see `include/assert.inc` |
| 12 |
# |
| 13 |
# ==== References ==== |
| 14 |
# |
| 15 |
# |
| 16 |
# Related tests; |
| 17 |
# see extra/xa_crash_safe_tests/setup.inc |
| 18 |
# |
| 19 |
|
| 20 |
--let $count = `SELECT COUNT(1) FROM t1;` |
| 21 |
--let $assert_text = Table 'test.t1' record count must be $expected_row_count |
| 22 |
--let $assert_cond = $count = $expected_row_count |
| 23 |
--source include/assert.inc |