diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-12-01 22:26:06 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-12-05 17:21:48 +0300 |
commit | 66eea6d40b7fd2c12b297f7ce55a62e02f4db291 (patch) | |
tree | b32027be37054d110f52b8280cf8d2b959c78921 /build2/test/script/runner.cxx | |
parent | caf24aa705243f87c83d346d803adf84888a3cc5 (diff) |
Make use of casts and canonicalizations in testscripts
Diffstat (limited to 'build2/test/script/runner.cxx')
-rw-r--r-- | build2/test/script/runner.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx index 8e336a3..ee059f4 100644 --- a/build2/test/script/runner.cxx +++ b/build2/test/script/runner.cxx @@ -316,8 +316,8 @@ namespace build2 }; // Register the command explicit cleanups. Verify that the path being - // cleaned up is a sub-path of the root test scope working directory. - // Fail if this is not the case. + // cleaned up is a sub-path of the testscript working directory. Fail + // if this is not the case. // for (const auto& cl: c.cleanups) { @@ -326,7 +326,7 @@ namespace build2 bool wc (np.leaf ().string () == "***"); const path& cp (wc ? np.directory () : np); - const path& wd (sp.root->wd_path); + const dir_path& wd (sp.root->wd_path); if (!cp.sub (wd)) fail (ll) << (wc |