Skip to content

Commit

Permalink
test-mu-utils: update parse_date_time tests
Browse files Browse the repository at this point in the history
We're using ::time_t now.
  • Loading branch information
djcb committed Apr 14, 2024
1 parent 9f47629 commit 29ce969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/tests/test-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ test_date_basic()
}

g_setenv("TZ", hki, TRUE);
std::vector<std::tuple<const char*, bool/*is_first*/, int64_t>> cases = {{
std::vector<std::tuple<const char*, bool/*is_first*/, ::time_t>> cases = {{
{"2015-09-18T09:10:23", true, 1442556623},
{"1972-12-14T09:10:23", true, 93165023},
{"1972-12-14T09:10", true, 93165000},
Expand All @@ -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) {
Expand Down

0 comments on commit 29ce969

Please sign in to comment.