umd/external/protobuf-2.6/gtest/fused-src/gtest/gtest-all.cc
static String ExitSummary(int exit_code) {
  Message m;
#if GTEST_OS_WINDOWS
  m << "Exited with exit status " << exit_code;
#else
  if (WIFEXITED(exit_code)) {
    m << "Exited with exit status " << WEXITSTATUS(exit_code);
  } else if (WIFSIGNALED(exit_code)) {
    m << "Terminated by signal " << WTERMSIG(exit_code);
  }
#ifdef WCOREDUMP
  if (WCOREDUMP(exit_code)) {
    m << " (core dumped)";
  }
#endif
#endif  // GTEST_OS_WINDOWS
  return m.GetString();
}
// Generates a textual description of a given exit code, in the format
// specified by wait(2).
Generates a textual description of a given exit code, in the format
specified by wait(2).
Generates a textual description of a given exit code in the format specified by wait ( 2 ) .
static String ExitSummary(int exit_code) {
  Message m;
#if GTEST_OS_WINDOWS
  m << "Exited with exit status " << exit_code;
#else
  if (WIFEXITED(exit_code)) {
    m << "Exited with exit status " << WEXITSTATUS(exit_code);
  } else if (WIFSIGNALED(exit_code)) {
    m << "Terminated by signal " << WTERMSIG(exit_code);
  }
#ifdef WCOREDUMP
  if (WCOREDUMP(exit_code)) {
    m << " (core dumped)";
  }
#endif
#endif  
  return m.GetString();
}
static String ExitSummary ( int exit_code ) { Message m ; #if GTEST_OS_WINDOWS m << " " << exit_code ; #else if ( WIFEXITED ( exit_code ) ) { m << " " << WEXITSTATUS ( exit_code ) ; } else if ( WIFSIGNALED ( exit_code ) ) { m << " " << WTERMSIG ( exit_code ) ; } #ifdef WCOREDUMP if ( WCOREDUMP ( exit_code ) ) { m << " " ; } #endif #endif return m . GetString ( ) ; }
Generates a textual description of a given exit code, in the format
specified by wait(2).
Generates a textual description of a given exit code in the format specified by wait ( 2 ) .
// GTEST_OS_WINDOWS