From a4bcb9f98b00885823c8c9b2b5fc53bc52c1edc9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 31 May 2017 14:19:18 +0300 Subject: Fix testscript runner not to remove special files with wildcard cleanups --- build2/test/script/script.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build2/test/script/script.hxx') 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; -- cgit v1.1