fix SEGV in graph_test
authorHiroyuki Iwatsuki <don@na.rim.or.jp>
Fri, 29 Apr 2011 23:08:56 +0000 (08:08 +0900)
committerHiroyuki Iwatsuki <don@na.rim.or.jp>
Fri, 29 Apr 2011 23:08:56 +0000 (08:08 +0900)
src/graph_test.cc

index 56e8ab5..7e0eac0 100644 (file)
@@ -86,14 +86,14 @@ TEST_F(GraphTest, PathWithCurrentDirectory) {
 "  depfile = $out.d\n"
 "  command = cat $in > $out\n"
 "build ./out.o: catdep ./foo.cc\n"));
-  fs_.Create("./foo.cc", 1, "");
-  fs_.Create("./out.o.d", 1, "out.o: foo.cc\n");
-  fs_.Create("./out.o", 1, "");
+  fs_.Create("foo.cc", 1, "");
+  fs_.Create("out.o.d", 1, "out.o: foo.cc\n");
+  fs_.Create("out.o", 1, "");
 
-  Edge* edge = GetNode("./out.o")->in_edge_;
+  Edge* edge = GetNode("out.o")->in_edge_;
   string err;
   EXPECT_TRUE(edge->RecomputeDirty(&state_, &fs_, &err));
   ASSERT_EQ("", err);
 
-  EXPECT_FALSE(GetNode("./out.o")->dirty_);
+  EXPECT_FALSE(GetNode("out.o")->dirty_);
 }