commit | bee28948fd9ca995568549e9cf95108e09fe2475 | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Thu May 30 10:03:25 2019 -0700 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Thu May 30 20:43:17 2019 +0000 |
tree | cc94df6c7d835a54f69a4ca244578992c5948442 | |
parent | 616f400313907532b9c8b78a9af503926280c1c3 [diff] |
FdFile needs close even without any valid FD The FdFile struct requires that Flush and Close be called even if there is no fd associated with the struct. This meant that test 1963 would fail a DCHECK if memfd_create fails. Test: Modify libartbase/base/memfd.cc to always fail. ./test/run-test --host 1963 Bug: 133731001 Change-Id: I34d2949f43d7943a3a900b0b641eb7a3525352d4