diff options
author | Brad King <brad.king@kitware.com> | 2015-11-10 20:09:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-06-19 15:08:26 (GMT) |
commit | 29a6e2fc6c671b9490193d4b235b53fb61886c80 (patch) | |
tree | 7c1c0df837bc8eca6dfb0e8956221425afc0d622 | |
parent | 1029064057fceb3638ac0b28f586a66f93169aaf (diff) | |
download | Ninja-29a6e2fc6c671b9490193d4b235b53fb61886c80.zip Ninja-29a6e2fc6c671b9490193d4b235b53fb61886c80.tar.gz Ninja-29a6e2fc6c671b9490193d4b235b53fb61886c80.tar.bz2 |
Simplify BuildTest.StatFailureAbortsBuild test case
Remove a dependency cycle from the test case, as cycles are covered by
other tests. Ensure this case covers stat failure on a valid graph.
-rw-r--r-- | src/build_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_test.cc b/src/build_test.cc index 623ed14..8c9fb11 100644 --- a/src/build_test.cc +++ b/src/build_test.cc @@ -1747,8 +1747,8 @@ TEST_F(BuildTest, InterruptCleanup) { TEST_F(BuildTest, StatFailureAbortsBuild) { const string kTooLongToStat(400, 'i'); ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, -("build " + kTooLongToStat + ": cat " + kTooLongToStat + "\n").c_str())); - // Also cyclic, for good measure. +("build " + kTooLongToStat + ": cat in\n").c_str())); + fs_.Create("in", ""); // This simulates a stat failure: fs_.files_[kTooLongToStat].mtime = -1; |