mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
test-os-util: test os_release_support_ended() with a date > 2038
SUSE regularly builds packages into the future to track issues like the the ones that might happen in 2038: https://www.reddit.com/r/linux/comments/xjtf3q/in_the_year_2038/ Make sure that os_release_support_ended() doesn't fail in this case.
This commit is contained in:
parent
175cdefd33
commit
a1254d26d5
@ -125,7 +125,7 @@ TEST(os_release_support_ended) {
|
||||
int r;
|
||||
|
||||
ASSERT_TRUE(os_release_support_ended("1999-01-01", false, NULL));
|
||||
ASSERT_FALSE(os_release_support_ended("2037-12-31", false, NULL));
|
||||
ASSERT_FALSE(os_release_support_ended("2067-12-31", false, NULL));
|
||||
assert_se(os_release_support_ended("-1-1-1", true, NULL) == -EINVAL);
|
||||
|
||||
r = os_release_support_ended(NULL, false, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user