Skip to content

Commit

Permalink
Fixed Ctest error in Macos (#2033)
Browse files Browse the repository at this point in the history
Co-authored-by: wuxianrong <wuxianrong@360.cn>
  • Loading branch information
Mixficsol and wuxianrong authored Oct 11, 2023
1 parent fcc7b31 commit 38fc79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pstd/tests/slash_env_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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

0 comments on commit 38fc79a

Please sign in to comment.