+AT_TESTED([perl])
+
+m4_define([OVS_WAIT_UNTIL],
+ [AT_CHECK(
+ [# First try a quick sleep, so that the test completes very quickly
+ # in the normal case. POSIX doesn't require fractional times to
+ # work, so this might not work.
+ sleep 0.1
+ $1
+ # Then wait up to 10 seconds.
+ for d in 0 1 2 3 4 5 6 7 8 9; do
+ sleep 1
+ $1
+ done
+ exit 1], [0], [ignore], [ignore])])