Skip to content

Commit

Permalink
Actually I believe this should be an EINVAL.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Apr 9, 2019
1 parent a63bd87 commit 9f3f999
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/test/test_util.c
Expand Up @@ -699,13 +699,6 @@ test_util_time(void *arg)

#define CHECK_TIMEGM_ARG_OUT_OF_RANGE(msg) \
CHECK_TIMEGM_WARNING("Out-of-range argument to tor_timegm")
#define CHECK_POSSIBLE_TIMEGM_ARG_OUT_OF_RANGE(msg) \
do { \
if (mock_saved_log_n_entries()) { \
expect_single_log_msg_containing("Out-of-range argument");\
} \
teardown_capture_of_logs(); \
} while (0)

/* year */

Expand Down Expand Up @@ -894,7 +887,7 @@ test_util_time(void *arg)
t_res = -1;
CAPTURE();
tor_gmtime_r(&t_res, &b_time);
CHECK_POSSIBLE_TIMEGM_ARG_OUT_OF_RANGE();
CHECK_POSSIBLE_EINVAL();
tt_assert(b_time.tm_year == (1970-1900) ||
b_time.tm_year == (1969-1900));

Expand Down

0 comments on commit 9f3f999

Please sign in to comment.