AU: Make sure that subsequent non-Terminator unit tests don't exit.
This didn't seem to cause an issue but it's better to be safe.
BUG=6243
TEST=unit tests
Change-Id: Ifdd73ba2f18f2b92944b448803c1447131a3d74d
Review URL: http://codereview.chromium.org/5206007
diff --git a/terminator_unittest.cc b/terminator_unittest.cc
index e1fb573..8582b99 100644
--- a/terminator_unittest.cc
+++ b/terminator_unittest.cc
@@ -19,6 +19,11 @@
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;