summaryrefslogtreecommitdiffstats
path: root/src/build_log_test.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-05-09 23:24:24 (GMT)
committerEvan Martin <martine@danga.com>2011-05-11 18:29:01 (GMT)
commitfa8830b546428e1daa829d0ddf2465697e0d9bb3 (patch)
treee824209be8b0276109ae419ef024e28b59ec35bd /src/build_log_test.cc
parent3f7f99fbb5b064f2850543cf5574a6dc2b8d3a9d (diff)
downloadNinja-fa8830b546428e1daa829d0ddf2465697e0d9bb3.zip
Ninja-fa8830b546428e1daa829d0ddf2465697e0d9bb3.tar.gz
Ninja-fa8830b546428e1daa829d0ddf2465697e0d9bb3.tar.bz2
add a versioning header to build log, switch to v2
In v2 we store both the start and end time of the command. This allows better visualization of the build process.
Diffstat (limited to 'src/build_log_test.cc')
-rw-r--r--src/build_log_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/build_log_test.cc b/src/build_log_test.cc
index 66f88c3..caf1540 100644
--- a/src/build_log_test.cc
+++ b/src/build_log_test.cc
@@ -35,8 +35,8 @@ TEST_F(BuildLogTest, WriteRead) {
string err;
EXPECT_TRUE(log1.OpenForWrite(kTestFilename, &err));
ASSERT_EQ("", err);
- log1.RecordCommand(state_.edges_[0], 15);
- log1.RecordCommand(state_.edges_[1], 20);
+ log1.RecordCommand(state_.edges_[0], 15, 18);
+ log1.RecordCommand(state_.edges_[1], 20, 25);
log1.Close();
BuildLog log2;
@@ -50,7 +50,7 @@ TEST_F(BuildLogTest, WriteRead) {
BuildLog::LogEntry* e2 = log2.LookupByOutput("out");
ASSERT_TRUE(e2);
ASSERT_TRUE(*e1 == *e2);
- ASSERT_EQ(15, e1->time_ms);
+ ASSERT_EQ(15, e1->start_time);
ASSERT_EQ("out", e1->output);
}