Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 09c332e

Browse files
committed
fix SEGV in graph_test
1 parent 6bbcdca commit 09c332e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/graph_test.cc

+5-5
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ TEST_F(GraphTest, PathWithCurrentDirectory) {
8686
" depfile = $out.d\n"
8787
" command = cat $in > $out\n"
8888
"build ./out.o: catdep ./foo.cc\n"));
89-
fs_.Create("./foo.cc", 1, "");
90-
fs_.Create("./out.o.d", 1, "out.o: foo.cc\n");
91-
fs_.Create("./out.o", 1, "");
89+
fs_.Create("foo.cc", 1, "");
90+
fs_.Create("out.o.d", 1, "out.o: foo.cc\n");
91+
fs_.Create("out.o", 1, "");
9292

93-
Edge* edge = GetNode("./out.o")->in_edge_;
93+
Edge* edge = GetNode("out.o")->in_edge_;
9494
string err;
9595
EXPECT_TRUE(edge->RecomputeDirty(&state_, &fs_, &err));
9696
ASSERT_EQ("", err);
9797

98-
EXPECT_FALSE(GetNode("./out.o")->dirty_);
98+
EXPECT_FALSE(GetNode("out.o")->dirty_);
9999
}

0 commit comments

Comments
 (0)