From 38fc79a3adc1f965336c1a7ae9a31a691a098754 Mon Sep 17 00:00:00 2001 From: Mixficsol <838844609@qq.com> Date: Tue, 10 Oct 2023 22:21:05 -0500 Subject: [PATCH] Fixed Ctest error in Macos (#2033) Co-authored-by: wuxianrong --- src/pstd/tests/slash_env_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pstd/tests/slash_env_test.cc b/src/pstd/tests/slash_env_test.cc index 5a78bb3b45..0dc833c279 100644 --- a/src/pstd/tests/slash_env_test.cc +++ b/src/pstd/tests/slash_env_test.cc @@ -17,7 +17,7 @@ class EnvTest : public ::testing::Test {}; TEST_F(EnvTest, SetMaxFileDescriptorNum) { ASSERT_EQ(0, SetMaxFileDescriptorNum(10)); - ASSERT_NE(0, SetMaxFileDescriptorNum(2147483647)); + ASSERT_NE(0, SetMaxFileDescriptorNum(18446744073709551615)); } TEST_F(EnvTest, FileOps) { @@ -27,7 +27,7 @@ TEST_F(EnvTest, FileOps) { ASSERT_TRUE(DeleteDirIfExist(tmp_dir)); ASSERT_TRUE(!FileExists(tmp_dir)); ASSERT_EQ(-1, DeleteDir(tmp_dir)); - ASSERT_NE(0, SetMaxFileDescriptorNum(2147483647)); + ASSERT_NE(0, SetMaxFileDescriptorNum(18446744073709551615)); } } // namespace pstd