From 825976445bd49ccdb3126b20499a05abd0a2b9e6 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Sat, 6 Nov 2010 20:10:34 -0700 Subject: [PATCH] test default builddir is empty --- parsers_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parsers_test.cc b/parsers_test.cc index a72e1ae..6829f68 100644 --- a/parsers_test.cc +++ b/parsers_test.cc @@ -174,11 +174,13 @@ TEST_F(ParserTest, Errors) { TEST_F(ParserTest, BuildDir) { ASSERT_NO_FATAL_FAILURE(AssertParse( +"default_test = @foo\n" "builddir = out\n" "rule cat\n" " command = cat @otherfile $in > $out\n" "build @bin: cat @a.o\n" "build @a.o: cat a.cc\n")); + EXPECT_EQ("foo", state.env_["default_test"]); ASSERT_TRUE(state.LookupNode("out/a.o")); Rule* rule = state.LookupRule("cat"); ASSERT_TRUE(rule); -- 2.7.4