Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1109)

Unified Diff: terminator_unittest.cc

Issue 5206007: AU: Make sure that subsequent non-Terminator unit tests don't exit. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: terminator_unittest.cc
diff --git a/terminator_unittest.cc b/terminator_unittest.cc
index e1fb5734ae0b23215bc00fa9e79f243b3cfec758..8582b99e705a35d08b92353e209dc76702107cb4 100644
--- a/terminator_unittest.cc
+++ b/terminator_unittest.cc
@@ -19,6 +19,11 @@ class TerminatorTest : public ::testing::Test {
ASSERT_FALSE(Terminator::exit_blocked());
ASSERT_FALSE(Terminator::exit_requested());
}
+ virtual void TearDown() {
+ // Makes sure subsequent non-Terminator tests don't get accidentally
+ // terminated.
+ Terminator::Init();
+ }
};
typedef TerminatorTest TerminatorDeathTest;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698