From 64cbe53f7361075f841572854f1065a6f7c6507c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 21 Oct 2016 17:41:09 +0200 Subject: Add testscript runner scope enter/leave callbacks --- unit-tests/test/script/parser/driver.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'unit-tests') diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx index db253eb..4d71082 100644 --- a/unit-tests/test/script/parser/driver.cxx +++ b/unit-tests/test/script/parser/driver.cxx @@ -29,12 +29,18 @@ namespace build2 { public: virtual void - run (const scope&, const command& t, size_t, const location&) override + enter (scope&, const location&) override {} + + virtual void + run (scope&, const command& t, size_t, const location&) override { // Here we assume we are running serially. // cout << t << endl; } + + virtual void + leave (scope&, const location&) override {} }; // Usage: argv[0] [] -- cgit v1.1