1 AT_BANNER([timeval unit tests])
3 AT_SETUP([check that time advances])
5 AT_CHECK([test-timeval plain], [0])
8 AT_SETUP([check that time advances after daemonize()])
10 AT_CHECK([test-timeval daemon], [0])
12 [# First try a quick sleep, so that the test completes very quickly
13 # in the normal case. POSIX doesn't require fractional times to
14 # work, so this might not work.
15 sleep 0.1; if test -e test-timeval.success; then echo success; exit 0; fi
16 # Then wait up to 2 seconds.
17 sleep 1; if test -e test-timeval.success; then echo success; exit 0; fi
18 sleep 1; if test -e test-timeval.success; then echo success; exit 0; fi
19 echo failure; exit 1],