mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 07:31:33 +01:00
Add a unit test for the old crash input of tor_timegm().
This commit is contained in:
parent
582f2187a7
commit
7072dd5dbe
1 changed files with 1 additions and 0 deletions
|
@ -152,6 +152,7 @@ test_util_time(void)
|
|||
test_eq(-1, parse_iso_time("2011-03-30 23:59:62 GMT", &t_res));
|
||||
test_eq(-1, parse_iso_time("1969-03-30 23:59:59 GMT", &t_res));
|
||||
test_eq(-1, parse_iso_time("2011-00-30 23:59:59 GMT", &t_res));
|
||||
test_eq(-1, parse_iso_time("2147483647-08-29 14:00:00", &t_res));
|
||||
test_eq(-1, parse_iso_time("2011-03-30 23:59", &t_res));
|
||||
|
||||
/* Test tor_gettimeofday */
|
||||
|
|
Loading…
Add table
Reference in a new issue