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 $wait_timeout= 60; # Override default 30 seconds with 60.
17
# let $wait_condition=
18
# SELECT c = 3 FROM t;
19
# --source include/wait_condition.inc
20
# --echo Executed the test condition $wait_condition_reps times
23
# 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
echo Timeout in wait_condition.inc for $wait_condition;