umd/external/protobuf-2.6/gtest/fused-src/gtest/gtest-all.cc
void DeathTestAbort(const String& message) {
  // On a POSIX system, this function may be called from a threadsafe-style
  // death test child process, which operates on a very small stack.  Use
  // the heap for any additional non-minuscule memory requirements.
  const InternalRunDeathTestFlag* const flag =
      GetUnitTestImpl()->internal_run_death_test_flag();
  if (flag != NULL) {
    FILE* parent = posix::FDOpen(flag->write_fd(), "w");
    fputc(kDeathTestInternalError, parent);
    fprintf(parent, "%s", message.c_str());
    fflush(parent);
    _exit(1);
  } else {
    fprintf(stderr, "%s", message.c_str());
    fflush(stderr);
    abort();
  }
}
// Routine for aborting the program which is safe to call from an
// exec-style death test child process, in which case the error
// message is propagated back to the parent process.  Otherwise, the
// message is simply printed to stderr.  In either case, the program
// then exits with status 1.
Routine for aborting the program which is safe to call from an
exec-style death test child process, in which case the error
message is propagated back to the parent process.  Otherwise, the
message is simply printed to stderr.  In either case, the program
then exits with status 1.
Routine for aborting the program which is safe to call from an exec - style death test child process in which case the error message is propagated back to the parent process . Otherwise the message is simply printed to stderr . In either case the program then exits with status 1 .
void DeathTestAbort(const String& message) {
  const InternalRunDeathTestFlag* const flag =
      GetUnitTestImpl()->internal_run_death_test_flag();
  if (flag != NULL) {
    FILE* parent = posix::FDOpen(flag->write_fd(), "w");
    fputc(kDeathTestInternalError, parent);
    fprintf(parent, "%s", message.c_str());
    fflush(parent);
    _exit(1);
  } else {
    fprintf(stderr, "%s", message.c_str());
    fflush(stderr);
    abort();
  }
}
void DeathTestAbort ( const String & message ) { const InternalRunDeathTestFlag * const flag = GetUnitTestImpl ( ) -> internal_run_death_test_flag ( ) ; if ( flag != NULL ) { FILE * parent = posix :: FDOpen ( flag -> write_fd ( ) , " " ) ; fputc ( kDeathTestInternalError , parent ) ; fprintf ( parent , " " , message . c_str ( ) ) ; fflush ( parent ) ; _exit ( 1 ) ; } else { fprintf ( stderr , " " , message . c_str ( ) ) ; fflush ( stderr ) ; abort ( ) ; } }
Routine for aborting the program which is safe to call from an
exec-style death test child process, in which case the error
message is propagated back to the parent process.
Routine for aborting the program which is safe to call from an exec - style death test child process in which case the error message is propagated back to the parent process .
// On a POSIX system, this function may be called from a threadsafe-style // death test child process, which operates on a very small stack.  Use // the heap for any additional non-minuscule memory requirements.