From 60fdf57cbc2b6201564d17b991f3612edcd65351 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Mon, 19 Dec 2011 11:18:29 -0800 Subject: adjust depfile test now that parsing is more lax --- src/build_test.cc | 5 +++-- 1 file 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) { -- cgit v0.12