aboutsummaryrefslogtreecommitdiff
path: root/tests/test-timeval.c
AgeCommit message (Collapse)Author
2011-04-04Log anything that could prevent a daemon from starting.Ben Pfaff
If a daemon doesn't start, we need to know why. Being able to consistently consult the log to find out is helpful.
2010-07-21timeval: Make time_init() static and remove calls to it.Ben Pfaff
Since the timeval module now initializes itself on-demand, there is no longer any need to initialize it explicitly, or to provide an interface to do so.
2010-06-10tests: Allow some difference in rounding in timeval test.Jesse Gross
We now use a time source that provides nanosecond granularity. However, our test uses gettimeofday() for comparision, which has microsecond granularity. In some cases this can lead to different values depending on the rounding. This allows us to be off by one to prevent intermittent test failures.
2010-06-08timeval: Use monotonic time where appropriate.Jesse Gross
Most of the timekeeping needs of OVS are simply to measure intervals, which means that it is sensitive to changes in the clock. This commit replaces the existing clocks with monotonic timers. An additional set of wall clock timers are added and used in locations that need absolute time. Bug #1858
2010-02-02tests: Fix memory leaks in test programs.Ben Pfaff
This makes it easier to see memory leaks in the code under test. Found with valgrind.
2010-01-26daemon: Make --monitor process change its process title.Ben Pfaff
When --monitor is used, administrators sometimes become confused about the presence of two copies of each process. This commit attempts to clarify the situation by making the monitoring process change its process name, as seen in /proc/$pid/cmdline and in "ps", to clearly indicate what is going on. CC: Dan Wendlandt <dan@nicira.com>
2010-01-15tests: Improve error reporting for timeval test failures.Ben Pfaff
2009-10-23Add test to ensure that time advances both normally and in a daemon.Ben Pfaff
This commit adds a test to ensure that the fix that makes daemonize() reinitialize the periodic timer actually worked.