aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-03 17:20:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-03 17:20:30 +0300
commit0501e116c1410ade9a7ed4b14752d66194de99d5 (patch)
tree771295bf6f5171ec0519bd06c8d125800476a10e
parent7c90b39d36dab3663313772c22034f006db9d899 (diff)
Adjust test working directory removal verbosity level (make 2)
-rw-r--r--build2/test/script/runner.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx
index 11873ca..2453672 100644
--- a/build2/test/script/runner.cxx
+++ b/build2/test/script/runner.cxx
@@ -831,13 +831,17 @@ namespace build2
{
dir_path d (path_cast<dir_path> (p));
+ // Trace the scope working directory removal with the verbosity
+ // level 2 (that was used for its creation). For other
+ // directories use level 3 (as for other cleanups).
+ //
// @@ If 'd' is a file then will fail with a diagnostics having
// no location info. Probably need to add an optional location
// parameter to rmdir() function. The same problem exists for
// a file cleanup when try to rmfile() directory instead of
// file.
//
- rmdir_status r (rmdir (d, 3));
+ rmdir_status r (rmdir (d, d == sp.wd_path ? 2 : 3));
if (r == rmdir_status::success ||
(r == rmdir_status::not_exist && t == cleanup_type::maybe))