summaryrefslogtreecommitdiffstats
path: root/bin/tests/virtual-time/README
blob: a58940fbd78b4c78e9b0dbd904862b76fe887032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Copyright (C) Internet Systems Consortium, Inc. ("ISC")

See COPYRIGHT in the source root or http://isc.org/copyright.html for terms.

This is copied from ../system.

This test suite uses a virtual time, gettimeofday(), select(),
poll(), kevent() and epoll_wait() Unix system calls are redirected:
gettimeofday() returns a date in virtual/exponentially inflated
delay from an epoch, select(), poll(), kevent() and epoll_wait()
timeouts are deflated down to at least 10ms.

These tests depends on LD_PRELOAD being supported by the runtime
loader.

Beware BIND clock uses unsigned integer, in 22 seconds isc_time_now()
overflows and breaks assertions. Note 22 real seconds is 136 virtual
years...