diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-31 14:19:18 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-31 14:26:20 +0300 |
commit | a4bcb9f98b00885823c8c9b2b5fc53bc52c1edc9 (patch) | |
tree | 6ef0d18ee69a99317b7d34e8c01e0d8bfb0ee2d9 /build2/test/script/script.hxx | |
parent | 558f89e05a50c59b6369a980c246ec5e6ee834ea (diff) |
Fix testscript runner not to remove special files with wildcard cleanups
Diffstat (limited to 'build2/test/script/script.hxx')
-rw-r--r-- | build2/test/script/script.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build2/test/script/script.hxx b/build2/test/script/script.hxx index 9aadf06..acf2b3c 100644 --- a/build2/test/script/script.hxx +++ b/build2/test/script/script.hxx @@ -364,6 +364,7 @@ namespace build2 scope_state state = scope_state::unknown; test::script::cleanups cleanups; + paths special_cleanups; // Variables. // @@ -414,6 +415,13 @@ namespace build2 void clean (cleanup, bool implicit); + // Register cleanup of a special file. Such files are created to + // maintain testscript machinery and must be removed first, not to + // interfere with the user-defined wildcard cleanups. + // + void + clean_special (path p); + public: virtual ~scope () = default; |