From 062e03325cf9bb7fecfb9ea254ceb5c0cf427a7a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 16 Jun 2017 23:43:24 +0300 Subject: Add support for exit testscript builtin --- build2/test/script/parser.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'build2/test/script/parser.hxx') diff --git a/build2/test/script/parser.hxx b/build2/test/script/parser.hxx index 21ea61a..4c666f5 100644 --- a/build2/test/script/parser.hxx +++ b/build2/test/script/parser.hxx @@ -183,7 +183,12 @@ namespace build2 void exec_scope_body (); - void + // Return false if the execution of the scope should be terminated + // with the success status (e.g., as a result of encountering the exit + // builtin). For unsuccessful termination the failed exception should + // be thrown. + // + bool exec_lines (lines::iterator, lines::iterator, size_t&, command_type); // Customization hooks. -- cgit v1.1