diff options
author | 2017-02-13 15:34:58 -0800 | |
---|---|---|
committer | 2017-02-13 17:24:58 -0800 | |
commit | bc225bfaa534acc25047fe844f19edc333b7a76a (patch) | |
tree | fa76941d893ad2e31d0961194c68893a4dc29c5a /tensorflow/core/util/memmapped_file_system_test.cc | |
parent | d065a5d984794a0e59bc1787010ef4b911d4ef89 (diff) |
Fix code that ignores tensorflow::Status.
Add a new tensorflow::Status::IgnoreError() method to mark call sites where a Status has been intentionally ignored.
Change: 147402405
Diffstat (limited to 'tensorflow/core/util/memmapped_file_system_test.cc')
-rw-r--r-- | tensorflow/core/util/memmapped_file_system_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/util/memmapped_file_system_test.cc b/tensorflow/core/util/memmapped_file_system_test.cc index 179c72c1f5..db5ce2e50b 100644 --- a/tensorflow/core/util/memmapped_file_system_test.cc +++ b/tensorflow/core/util/memmapped_file_system_test.cc @@ -142,7 +142,7 @@ TEST(MemmappedFileSystemTest, ProxyToDefault) { // Making sure to clean up after the test finishes. const auto adh = [&memmapped_env, &filename](WritableFile* f) { delete f; - memmapped_env.DeleteFile(filename); + TF_CHECK_OK(memmapped_env.DeleteFile(filename)); }; std::unique_ptr<WritableFile, decltype(adh)> writable_file( writable_file_temp.release(), adh); |