aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/runner.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-01 23:31:27 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:37 +0200
commitb741291c708e5c2088680a0d9d3c75efd98db421 (patch)
tree5a21d56b272ddf0895cd0c221aaa9630927e9d21 /build2/test/script/runner.cxx
parent675d243e0ddeb627c0881b03e7cd5be746a5a7d3 (diff)
Make rmdir_r() to call entry_exists(path) rather than exists(dir_path)
Diffstat (limited to 'build2/test/script/runner.cxx')
-rw-r--r--build2/test/script/runner.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx
index 2af5865..79201b2 100644
--- a/build2/test/script/runner.cxx
+++ b/build2/test/script/runner.cxx
@@ -254,17 +254,6 @@ namespace build2
// Recursive removal of non-existing directory is not an error for
// 'maybe' cleanup type.
//
- // Note that if some file system entry of non-directory type exists
- // with such a name it is not removed but the operation still
- // succeeds for 'maybe' cleanup type. The removal of this entry can
- // be handled at the time of the containing directory cleanup.
- //
- // @@ The behavior in the situation described differes for &?a/***
- // and &?a/ due to build2::rmdir_r() implementation details which
- // checks for directory existence before trying to remove it.
- // Shouldn't rmdir_r() behave the same way as rmdir() in regards
- // to non-directory removal?
- //
if (p.leaf ().string () == "***")
{
verify (p.directory (), p, "wildcard");