Parcourir la source

[2831] Close remaining pipe fd after using it

Mukund Sivaraman il y a 12 ans
Parent
commit
52c3dae27c
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/lib/util/tests/memory_segment_mapped_unittest.cc

+ 1 - 0
src/lib/util/tests/memory_segment_mapped_unittest.cc

@@ -411,6 +411,7 @@ TEST_F(MemorySegmentMappedTest, multiProcess) {
     // parent: wait for the completion of the child and checks the result.
     close(pipes[1]);
     EXPECT_EQ(0, parentReadState(pipes[0]));
+    close(pipes[0]);
 }
 
 TEST_F(MemorySegmentMappedTest, nullDeallocate) {