summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-22 08:51:03 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-22 08:51:03 -0400
commit512c57cff97c0533bbb56e6c41a1e3dca5fd9064 (patch)
tree0da3111315e95560dd7190012463b158bd4af867
parent00d7b60557883ac0c3ad4c27071d4efe1f7a3ffb (diff)
downloadtor-512c57cff97c0533bbb56e6c41a1e3dca5fd9064.tar.gz
tor-512c57cff97c0533bbb56e6c41a1e3dca5fd9064.zip
test_util: capture the log in the correct place.
-rw-r--r--src/test/test_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 35fd02b1e9..1749617c2e 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1045,12 +1045,13 @@ test_util_time(void *arg)
/* This value is out of range with 32 bit time_t, but in range for 64 bit
* time_t */
t_res = 0;
- i = parse_iso_time("2038-02-17 06:13:20", &t_res);
#if SIZEOF_TIME_T == 4
CAPTURE();
+ i = parse_iso_time("2038-02-17 06:13:20", &t_res);
tt_int_op(-1,OP_EQ, i);
CHECK_TIMEGM_WARNING("does not fit in tor_timegm");
#elif SIZEOF_TIME_T == 8
+ i = parse_iso_time("2038-02-17 06:13:20", &t_res);
tt_int_op(0,OP_EQ, i);
tt_int_op(t_res,OP_EQ, (time_t)2150000000UL);
#endif /* SIZEOF_TIME_T == 4 || ... */