Fix the -Wmissing-designated-field-initializers on the clang-ppc64le-rhel bot
GitOrigin-RevId: 685d7855acb28f89aa948e0056d2807bf30d3971
diff --git a/tests/strings_test.cpp b/tests/strings_test.cpp
index 3e41f67..17a596d 100644
--- a/tests/strings_test.cpp
+++ b/tests/strings_test.cpp
@@ -136,7 +136,7 @@
rlimit Limit = {};
EXPECT_EQ(0, getrlimit(RLIMIT_AS, &Limit));
- rlimit EmptyLimit = {.rlim_max = Limit.rlim_max};
+ rlimit EmptyLimit = {.rlim_cur = 0, .rlim_max = Limit.rlim_max};
EXPECT_EQ(0, setrlimit(RLIMIT_AS, &EmptyLimit));
// Test requires that the default length is at least 6 characters.
diff --git a/tests/vector_test.cpp b/tests/vector_test.cpp
index b767867..add62c5 100644
--- a/tests/vector_test.cpp
+++ b/tests/vector_test.cpp
@@ -55,7 +55,7 @@
rlimit Limit = {};
EXPECT_EQ(0, getrlimit(RLIMIT_AS, &Limit));
- rlimit EmptyLimit = {.rlim_max = Limit.rlim_max};
+ rlimit EmptyLimit = {.rlim_cur = 0, .rlim_max = Limit.rlim_max};
EXPECT_EQ(0, setrlimit(RLIMIT_AS, &EmptyLimit));
V.resize(capacity);