]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test_util: capture the log in the correct place.
authorNick Mathewson <nickm@torproject.org>
Fri, 22 Sep 2017 12:51:03 +0000 (08:51 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 22 Sep 2017 12:51:03 +0000 (08:51 -0400)
src/test/test_util.c

index 35fd02b1e921ab9212d7308da1f5efbe6b72f1d7..1749617c2e1c288c7e80a884196e1c509bd9eab0 100644 (file)
@@ -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 || ... */