]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-date: do not fail even on ~50 years later
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 11 Sep 2022 18:02:31 +0000 (03:02 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 15 Sep 2022 12:48:55 +0000 (13:48 +0100)
Fixes #16181.

src/test/test-date.c

index b3b902e64bd067ae6e1cdc85456c558b10898329..097066b61ab1ad21de0719a96db3f7ea9337a329 100644 (file)
@@ -91,7 +91,7 @@ int main(int argc, char *argv[]) {
         test_should_parse("1970-1-1 UTC");
         test_should_pass("1970-1-1 00:00:01 UTC");
         test_should_fail("1969-12-31 UTC");
-        test_should_fail("-100y");
+        test_should_fail("-1000y");
         test_should_fail("today UTC UTC");
         test_should_fail("now Asia/Seoul");
         test_should_fail("+2d Asia/Seoul");