aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-09 13:49:10 -0400
committerNick Mathewson <nickm@torproject.org>2019-04-09 13:49:10 -0400
commit9f3f99938e441c09c1b3bf64510b8fb682dba007 (patch)
treecc47b26d1c9b5d0976e65d0a06d4dce11692bfb5 /src/test/test_util.c
parenta63bd877608cc9892c58ca8addbe18f9f7eff468 (diff)
downloadtor-9f3f99938e441c09c1b3bf64510b8fb682dba007.tar.gz
tor-9f3f99938e441c09c1b3bf64510b8fb682dba007.zip
Actually I believe this should be an EINVAL.
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r--src/test/test_util.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 1b8897a170..3a0eb15157 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -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 */
@@ -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));