umd/external/protobuf-2.6/gtest/fused-src/gtest/gtest-all.cc
void DeathTestImpl::Abort(AbortReason reason) {
  // The parent process considers the death test to be a failure if
  // it finds any data in our pipe.  So, here we write a single flag byte
  // to the pipe, then exit.
  const char status_ch =
      reason == TEST_DID_NOT_DIE ? kDeathTestLived : kDeathTestReturned;
  GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1));
  GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Close(write_fd()));
  _exit(1);  // Exits w/o any normal exit hooks (we were supposed to crash)
}
// Signals that the death test code which should have exited, didn't.
// Should be called only in a death test child process.
// Writes a status byte to the child's status file descriptor, then
// calls _exit(1).
Signals that the death test code which should have exited, didn't.
Should be called only in a death test child process.
Writes a status byte to the child's status file descriptor, then
calls _exit(1).
Signals that the death test code which should have exited didn ' t . Should be called only in a death test child process . Writes a status byte to the child ' s status file descriptor then calls _exit ( 1 ) .
void DeathTestImpl::Abort(AbortReason reason) {
  const char status_ch =
      reason == TEST_DID_NOT_DIE ? kDeathTestLived : kDeathTestReturned;
  GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1));
  GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Close(write_fd()));
  _exit(1);  
}
void DeathTestImpl :: Abort ( AbortReason reason ) { const char status_ch = reason == TEST_DID_NOT_DIE ? kDeathTestLived : kDeathTestReturned ; GTEST_DEATH_TEST_CHECK_SYSCALL_ ( posix :: Write ( write_fd ( ) , & status_ch , 1 ) ) ; GTEST_DEATH_TEST_CHECK_SYSCALL_ ( posix :: Close ( write_fd ( ) ) ) ; _exit ( 1 ) ; }
Signals that the death test code which should have exited, didn't.
Signals that the death test code which should have exited didn ' t .
// The parent process considers the death test to be a failure if // it finds any data in our pipe.  So, here we write a single flag byte // to the pipe, then exit. // Exits w/o any normal exit hooks (we were supposed to crash)