Fix a (failure-only) null dereference in the unit tests

This commit is contained in:
Nick Mathewson 2013-08-06 19:31:26 -04:00
parent 7080d55c49
commit 1104d0bee9

View File

@ -2916,6 +2916,7 @@ test_gettimeofday_cached(void *arg)
event_config_set_flag(cfg, EVENT_BASE_FLAG_NO_CACHE_TIME);
}
cached_time_base = base = event_base_new_with_config(cfg);
tt_assert(base);
/* Try gettimeofday_cached outside of an event loop. */
evutil_gettimeofday(&now, NULL);