AU: Exit with status 1 through the Terminator.

This doesn't matter for the target but allows unexpected premature exits through
the Terminator to be caught in unit tests.

BUG=6243
TEST=unit tests, tested interrupting/resuming updates on the device,
tested with a temporary unit test that exited prematurely.

Change-Id: I12b3720d6076487a726e85024a54a2f66594aac5

Review URL: http://codereview.chromium.org/5245002
diff --git a/terminator_unittest.cc b/terminator_unittest.cc
index 8582b99..b0f4191 100644
--- a/terminator_unittest.cc
+++ b/terminator_unittest.cc
@@ -34,7 +34,7 @@
 }
 
 void RaiseSIGTERM() {
-  ASSERT_EXIT(raise(SIGTERM), ExitedWithCode(0), "");
+  ASSERT_EXIT(raise(SIGTERM), ExitedWithCode(1), "");
 }
 }  // namespace {}
 
@@ -54,9 +54,9 @@
 }
 
 TEST_F(TerminatorDeathTest, ExitTest) {
-  ASSERT_EXIT(Terminator::Exit(), ExitedWithCode(0), "");
+  ASSERT_EXIT(Terminator::Exit(), ExitedWithCode(1), "");
   Terminator::set_exit_blocked(true);
-  ASSERT_EXIT(Terminator::Exit(), ExitedWithCode(0), "");
+  ASSERT_EXIT(Terminator::Exit(), ExitedWithCode(1), "");
 }
 
 TEST_F(TerminatorDeathTest, RaiseSignalTest) {
@@ -68,7 +68,7 @@
 TEST_F(TerminatorDeathTest, ScopedTerminatorExitUnblockerExitTest) {
   Terminator::set_exit_blocked(true);
   Terminator::exit_requested_ = 1;
-  ASSERT_EXIT(UnblockExitThroughUnblocker(), ExitedWithCode(0), "");
+  ASSERT_EXIT(UnblockExitThroughUnblocker(), ExitedWithCode(1), "");
 }
 
 }  // namespace chromeos_update_engine