summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-19 19:18:29 (GMT)
committerEvan Martin <martine@danga.com>2011-12-19 19:18:47 (GMT)
commit60fdf57cbc2b6201564d17b991f3612edcd65351 (patch)
treec29ab9a37008f0f9de0c04ecdbcd5dff27549b2b
parentbbf180d581ada47011c66c735bffdd87cddd0bd1 (diff)
downloadNinja-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.cc5
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) {