third_party/webports/src/src/ports/devenv/tests/devenv_small_test.cc
static int exit_child(int argc, char **argv) {
  if (strcmp(argv[3], getenv("FOO")) != 0) {
    return 55;
  }
  _exit(atoi(argv[2]));
  // Shouldn't get here.
  return 55;
}
// Used in main to allow the test exectuable to be started
// as a subprocess.
// Child takes args:
// ./test _exit <return-code> <expected-foo-env>
// It will return 55 as a bad return value in the case
// that the FOO environment variable isn't the expected
// value.
Used in main to allow the test exectuable to be started
as a subprocess.
Child takes args:
./test _exit  
It will return 55 as a bad return value in the case
that the FOO environment variable isn't the expected
value.
Used in main to allow the test exectuable to be started as a subprocess . Child takes args : . / test _exit It will return 55 as a bad return value in the case that the FOO environment variable isn ' t the expected value .
static int exit_child(int argc, char **argv) {
  if (strcmp(argv[3], getenv("FOO")) != 0) {
    return 55;
  }
  _exit(atoi(argv[2]));
  return 55;
}
static int exit_child ( int argc , char * * argv ) { if ( strcmp ( argv [ 3 ] , getenv ( " " ) ) != 0 ) { return 55 ; } _exit ( atoi ( argv [ 2 ] ) ) ; return 55 ; }
Used in main to allow the test exectuable to be started
as a subprocess.
Used in main to allow the test exectuable to be started as a subprocess .
// Shouldn't get here.