Commit 75be86d0 authored by Ilia Samsonov's avatar Ilia Samsonov Committed by Commit Bot

Delete temporary directory recursively.

Deleting the directory not recursively returns false.

Bug: 936248
Change-Id: Ic899633b8fa786303edd6a587c140c2d8af08fcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730100Reviewed-by: default avatarErik Chen <erikchen@chromium.org>
Commit-Queue: Ilia Samsonov <isamsonov@google.com>
Cr-Commit-Position: refs/heads/master@{#683025}
parent d9e34e04
......@@ -643,7 +643,7 @@ void TestRunner::LaunchNextTask(scoped_refptr<TaskRunner> task_runner,
FilePath temp_dir) {
DCHECK(thread_checker_.CalledOnValidThread());
// delete previous temporary directory
if (!temp_dir.empty() && !DeleteFile(temp_dir, false)) {
if (!temp_dir.empty() && !DeleteFile(temp_dir, true)) {
// This needs to be non-fatal at least for Windows.
LOG(WARNING) << "Failed to delete " << temp_dir.AsUTF8Unsafe();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment