summaryrefslogtreecommitdiff
path: root/src/test/test_util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-01-23 17:08:36 -0500
committerNick Mathewson <nickm@torproject.org>2019-01-23 17:08:36 -0500
commitbbe417ae8f2eff9b1ec50411dc50d4f0281c1778 (patch)
treed9d0245f19e5f5bbb2f2060a49159d28854667c5 /src/test/test_util.c
parentd23704bf26ae6c00e97fb0c3ceb4a362c49eaf07 (diff)
parentd71ca3968213ea2ed6e30e7a1a5478db759a61e5 (diff)
downloadtor-bbe417ae8f2eff9b1ec50411dc50d4f0281c1778.tar.gz
tor-bbe417ae8f2eff9b1ec50411dc50d4f0281c1778.zip
Merge branch 'ticket28668_035' into ticket28668_040
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r--src/test/test_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 1069c05700..77a4474522 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1087,7 +1087,10 @@ test_util_time(void *arg)
/* This value is out of range with 32 bit time_t, but in range for 64 bit
* time_t */
+ CAPTURE();
format_rfc1123_time(timestr, (time_t)2150000000UL);
+ CHECK_POSSIBLE_EINVAL();
+
#if SIZEOF_TIME_T == 4
#if 0
/* Wrapping around will have made it this. */