diff options
author | Evan Martin <martine@danga.com> | 2010-12-14 16:37:48 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2010-12-14 16:37:48 (GMT) |
commit | a4b90fa428f6b1836854c089754c912f72c7bfb2 (patch) | |
tree | 00f84971f1c82b8dae9e8abc3e3fe90bc2e8c0fb /src/build_test.cc | |
parent | bad6337f7cd39c557c392b19f8ac89e8ce190e2a (diff) | |
download | Ninja-a4b90fa428f6b1836854c089754c912f72c7bfb2.zip Ninja-a4b90fa428f6b1836854c089754c912f72c7bfb2.tar.gz Ninja-a4b90fa428f6b1836854c089754c912f72c7bfb2.tar.bz2 |
verbosity tristate
Diffstat (limited to 'src/build_test.cc')
-rw-r--r-- | src/build_test.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/build_test.cc b/src/build_test.cc index b8f1887..b2c4d76 100644 --- a/src/build_test.cc +++ b/src/build_test.cc @@ -160,7 +160,7 @@ TEST_F(PlanTest, DependencyCycle) { struct BuildTest : public StateTestWithBuiltinRules, public CommandRunner, public DiskInterface { - BuildTest() : config_(), builder_(&state_, config_), now_(1), + BuildTest() : config_(MakeConfig()), builder_(&state_, config_), now_(1), last_command_(NULL) { builder_.disk_interface_ = this; builder_.command_runner_ = this; @@ -197,6 +197,12 @@ struct BuildTest : public StateTestWithBuiltinRules, return ""; } + BuildConfig MakeConfig() { + BuildConfig config; + config.verbosity = BuildConfig::QUIET; + return config; + } + BuildConfig config_; Builder builder_; int now_; |