summaryrefslogtreecommitdiffstats
path: root/src/build_test.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2010-12-13 20:16:55 (GMT)
committerEvan Martin <martine@danga.com>2010-12-13 20:16:55 (GMT)
commitbad6337f7cd39c557c392b19f8ac89e8ce190e2a (patch)
treef7fe75d1e15f2f6aecf586f4ad2b06598a8b4654 /src/build_test.cc
parent07171dd9d7aaa28580827b40203364862c2c0968 (diff)
downloadNinja-bad6337f7cd39c557c392b19f8ac89e8ce190e2a.zip
Ninja-bad6337f7cd39c557c392b19f8ac89e8ce190e2a.tar.gz
Ninja-bad6337f7cd39c557c392b19f8ac89e8ce190e2a.tar.bz2
use separate config object
Diffstat (limited to 'src/build_test.cc')
-rw-r--r--src/build_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build_test.cc b/src/build_test.cc
index 2ded588..b8f1887 100644
--- a/src/build_test.cc
+++ b/src/build_test.cc
@@ -160,7 +160,8 @@ TEST_F(PlanTest, DependencyCycle) {
struct BuildTest : public StateTestWithBuiltinRules,
public CommandRunner,
public DiskInterface {
- BuildTest() : builder_(&state_), now_(1), last_command_(NULL) {
+ BuildTest() : config_(), builder_(&state_, config_), now_(1),
+ last_command_(NULL) {
builder_.disk_interface_ = this;
builder_.command_runner_ = this;
AssertParse(&state_,
@@ -196,6 +197,7 @@ struct BuildTest : public StateTestWithBuiltinRules,
return "";
}
+ BuildConfig config_;
Builder builder_;
int now_;
map<string, string> file_contents_;