commit | b7abae19bd6ac3921ca7fc11defe73f167e4f3f7 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Thu Mar 08 17:03:04 2018 -0800 |
committer | Yabin Cui <yabinc@google.com> | Thu Mar 08 17:59:36 2018 -0800 |
tree | 2c35b1f9543e8c9e566c43a923383866e598e86d | |
parent | fec5b09e902dc4d47224a5419790ab374972d714 [diff] [blame] |
base: Add TemporaryFile::DoNotRemove(). Bug: http://b/73127105 Test: none. Change-Id: I563c12bfb629ddd630568dda4817fb10cc9940a8
diff --git a/test_utils.cpp b/test_utils.cpp index 9d8dfb2..1619c21 100644 --- a/test_utils.cpp +++ b/test_utils.cpp
@@ -92,7 +92,9 @@ if (fd != -1) { close(fd); } - unlink(path); + if (remove_file_) { + unlink(path); + } } int TemporaryFile::release() {