From 9b196dc806e57cefd88bbbacd12286447dbf9ad9 Mon Sep 17 00:00:00 2001 From: Robert Iannucci Date: Sat, 10 Nov 2012 11:45:54 -0800 Subject: Dump state for debugging --- src/build_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/build_test.cc b/src/build_test.cc index 34db237..2d1d1a2 100644 --- a/src/build_test.cc +++ b/src/build_test.cc @@ -194,6 +194,8 @@ TEST_F(PlanTest, PoolWithDepthOne) { ASSERT_EQ("", err); ASSERT_TRUE(plan_.more_to_do()); + plan_.Dump(); + state_.Dump(); Edge* edge = plan_.FindWork(); ASSERT_TRUE(edge); ASSERT_EQ("in", edge->inputs_[0]->path()); @@ -250,6 +252,8 @@ TEST_F(PlanTest, PoolsWithDepthTwo) { EXPECT_TRUE(plan_.AddTarget(GetNode("allTheThings"), &err)); ASSERT_EQ("", err); + plan_.Dump(); + state_.Dump(); // Grab the first 4 edges, out1 out2 outb1 outb2 deque edges; for(int i = 0; i < 4; ++i) { -- cgit v0.12