diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/build_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build_test.cc b/src/build_test.cc index f7e4a5c..40d116f 100644 --- a/src/build_test.cc +++ b/src/build_test.cc @@ -484,9 +484,10 @@ TEST_F(BuildTest, DepFileParseError) { "rule cc\n command = cc $in\n depfile = $out.d\n" "build foo.o: cc foo.c\n")); fs_.Create("foo.c", now_, ""); - fs_.Create("foo.o.d", now_, "foo.o blah.h bar.h\n"); + fs_.Create("foo.o.d", now_, "randomtext\n"); EXPECT_FALSE(builder_.AddTarget("foo.o", &err)); - EXPECT_EQ("expected depfile 'foo.o.d' to mention 'foo.o', got ''", err); + EXPECT_EQ("expected depfile 'foo.o.d' to mention 'foo.o', got 'randomtext'", + err); } TEST_F(BuildTest, OrderOnlyDeps) { |