1 # include/wait_condition.inc
5 # Waits until the passed statement returns true, or the operation
10 # let $wait_condition=
11 # SELECT c = 3 FROM t;
12 # --source include/wait_condition.inc
16 # let $show_rpl_debug_info= 1; # to force post-failure printout
17 # let $wait_timeout= 60; # Override default 30 seconds with 60.
18 # let $wait_condition=
19 # SELECT c = 3 FROM t;
20 # --source include/wait_condition.inc
21 # --echo Executed the test condition $wait_condition_reps times
25 # events_bugs.test, events_time_zone.test
28 let $wait_counter= 300;
31 let $wait_counter= `SELECT $wait_timeout * 10`;
33 # Reset $wait_timeout so that its value won't be used on subsequent
34 # calls, and default will be used instead.
37 # Keep track of how many times the wait condition is tested
38 # This is used by some tests (e.g., main.status)
39 let $wait_condition_reps= 0;
42 let $success= `$wait_condition`;
43 inc $wait_condition_reps;
56 if ($show_rpl_debug_info)
58 --source include/show_rpl_debug_info.inc
60 die Timeout in wait_condition.inc
for $wait_condition;