diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-12 15:05:17 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-12 15:05:17 +0300 |
commit | 82674ef0da3785713dd295059c0f63a4e9e7a926 (patch) | |
tree | 2251c3bfce9fd82aa5c5eec2ca0ea876e2e465ce /unit-tests/test/script | |
parent | 50be4c0e935f0018ddc146dafd1ef2cf948ff780 (diff) |
Preprend testscript expressions with ': ' for verbosity >= 3
Diffstat (limited to 'unit-tests/test/script')
-rw-r--r-- | unit-tests/test/script/parser/driver.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx index fceb477..f6c8f7f 100644 --- a/unit-tests/test/script/parser/driver.cxx +++ b/unit-tests/test/script/parser/driver.cxx @@ -94,7 +94,16 @@ namespace build2 size_t i, const location&) override { - cout << ind_ << t << e; + const char* s (nullptr); + + switch (t) + { + case command_type::test: s = ""; break; + case command_type::setup: s = "+"; break; + case command_type::teardown: s = "-"; break; + } + + cout << ind_ << s << e; if (line_) cout << " # " << i; |