[tor-commits] [tor/master] test_util: capture the log in the correct place.

nickm at torproject.org nickm at torproject.org
Fri Sep 22 12:51:08 UTC 2017


commit 512c57cff97c0533bbb56e6c41a1e3dca5fd9064
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Sep 22 08:51:03 2017 -0400

    test_util: capture the log in the correct place.
---
 src/test/test_util.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index 35fd02b1e..1749617c2 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 || ... */



More information about the tor-commits mailing list