diff options
author | Evan Martin <martine@danga.com> | 2011-12-19 19:18:29 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-19 19:18:47 (GMT) |
commit | 60fdf57cbc2b6201564d17b991f3612edcd65351 (patch) | |
tree | c29ab9a37008f0f9de0c04ecdbcd5dff27549b2b | |
parent | bbf180d581ada47011c66c735bffdd87cddd0bd1 (diff) | |
download | Ninja-60fdf57cbc2b6201564d17b991f3612edcd65351.zip Ninja-60fdf57cbc2b6201564d17b991f3612edcd65351.tar.gz Ninja-60fdf57cbc2b6201564d17b991f3612edcd65351.tar.bz2 |
adjust depfile test now that parsing is more lax
-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) { |