diff options
author | Miao Wang <miaowang@google.com> | 2017-10-10 16:56:15 -0700 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2017-10-10 16:56:15 -0700 |
commit | a50eb97678b22f1d7f202828914b58bf22d4b757 (patch) | |
tree | 7de263cf508b81587795df1a82b92a2c2dd55f20 | |
parent | cca8e52e4c62e15ac884d9d90d8304bbea5b5316 (diff) | |
download | ml-a50eb97678b22f1d7f202828914b58bf22d4b757.tar.gz |
Close file descriptors in the TestMemory test.
Bug: 67650395
Test: Loop the affected test 1000 times and verified the bug is fixed.
Change-Id: Ib4b7ed567828511769fd7cb52e51e1e5d560e454
-rw-r--r-- | nn/runtime/test/TestMemory.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nn/runtime/test/TestMemory.cpp b/nn/runtime/test/TestMemory.cpp index 74931cacf..6428b2767 100644 --- a/nn/runtime/test/TestMemory.cpp +++ b/nn/runtime/test/TestMemory.cpp @@ -134,6 +134,9 @@ TEST_F(MemoryTest, TestASharedMemory) { Result::NO_ERROR); ASSERT_EQ(execution2.compute(), Result::NO_ERROR); ASSERT_EQ(CompareMatrices(expected3, *reinterpret_cast<Matrix3x4*>(outputData + offsetForActual)), 0); + close(weightsFd); + close(inputFd); + close(outputFd); } TEST_F(MemoryTest, TestFd) { |