From f41599c8e9435f3dfec60b872c2b4ae31177efdd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 10 Oct 2020 17:22:46 +0300 Subject: Add support for test timeouts --- libbuild2/adhoc-rule-buildscript.hxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libbuild2/adhoc-rule-buildscript.hxx') diff --git a/libbuild2/adhoc-rule-buildscript.hxx b/libbuild2/adhoc-rule-buildscript.hxx index d7543c4..89515eb 100644 --- a/libbuild2/adhoc-rule-buildscript.hxx +++ b/libbuild2/adhoc-rule-buildscript.hxx @@ -18,7 +18,8 @@ namespace build2 // // Note: not exported and should not be used directly (i.e., registered). // - class adhoc_buildscript_rule: public adhoc_rule + class adhoc_buildscript_rule: public adhoc_rule, + public adhoc_rule_with_deadline { public: virtual bool @@ -28,11 +29,15 @@ namespace build2 virtual recipe apply (action, target&, match_extra&) const override; + virtual recipe + apply (action, target&, match_extra&, + const optional&) const override; + target_state perform_update_file (action, const target&) const; target_state - default_action (action, const target&) const; + default_action (action, const target&, const optional&) const; adhoc_buildscript_rule (const location& l, size_t b) : adhoc_rule ("", l, b) {} -- cgit v1.1