| 1 |
# include/wait_condition_with_debug_and_kill.inc |
| 2 |
# |
| 3 |
# SUMMARY |
| 4 |
# |
| 5 |
# Waits until the passed statement returns true, or the operation |
| 6 |
# times out. If the operation times out, the additional error |
| 7 |
# statement will be executed and server is killed. |
| 8 |
# |
| 9 |
# USAGE |
| 10 |
# |
| 11 |
# let $wait_condition= |
| 12 |
# SELECT c = 3 FROM t; |
| 13 |
# let $wait_condition_on_error_output= select count(*) from t; |
| 14 |
# [let $explicit_default_wait_timeout= N] # to override the default reset |
| 15 |
# --source include/wait_condition_with_debug_and_kill.inc |
| 16 |
# |
| 17 |
# OR |
| 18 |
# |
| 19 |
# let $wait_timeout= 60; # Override default 30 seconds with 60. |
| 20 |
# let $wait_condition= |
| 21 |
# SELECT c = 3 FROM t; |
| 22 |
# let $wait_condition_on_error_output= select count(*) from t; |
| 23 |
# --source include/wait_condition_with_debug_and_kill.inc |
| 24 |
# --echo Executed the test condition $wait_condition_reps times |
| 25 |
# |
| 26 |
# |
| 27 |
# EXAMPLE |
| 28 |
# events_bugs.test, events_time_zone.test |
| 29 |
# |
| 30 |
|
| 31 |
--source include/wait_condition_with_debug.inc |
| 32 |
if (!$success) |
| 33 |
{ |
| 34 |
--source include/kill_galera.inc |
| 35 |
} |