From 29ce96923a39db81bc59b53c3bf6db547023088c Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 14 Apr 2024 11:30:20 +0300 Subject: [PATCH] test-mu-utils: update parse_date_time tests We're using ::time_t now. --- lib/utils/tests/test-utils.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/tests/test-utils.cc b/lib/utils/tests/test-utils.cc index 993c875c..fe0d0757 100644 --- a/lib/utils/tests/test-utils.cc +++ b/lib/utils/tests/test-utils.cc @@ -62,7 +62,7 @@ test_date_basic() } g_setenv("TZ", hki, TRUE); - std::vector> cases = {{ + std::vector> cases = {{ {"2015-09-18T09:10:23", true, 1442556623}, {"1972-12-14T09:10:23", true, 93165023}, {"1972-12-14T09:10", true, 93165000}, @@ -82,8 +82,8 @@ test_date_basic() // {"fnorb", true, -1}, // {"fnorb", false, -1}, - {"", false, G_MAXINT64}, - {"", true, 0} + {"", false, time_t_max}, + {"", true, time_t_min} }}; for (auto& test: cases) {