// Copyright (c) 2011 The Native Client Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "native_client/src/shared/platform/nacl_check.h"
#include "native_client/tests/ppapi_test_lib/test_interface.h"

namespace {

// This will crash a PPP_Messaging function.
void CrashViaExitCall() {
  printf("--- CrashViaExitCall\n");
  _exit(0);
}

}  // namespace

void SetupTests() {
  RegisterTest("CrashViaExitCall", CrashViaExitCall);
}

void SetupPluginInterfaces() {
  // none
}

// Copyright (c) 2011 The Native Client Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <unistd.h>

#include "native_client/src/shared/platform/nacl_check.h"
#include "native_client/tests/ppapi_test_lib/test_interface.h"

namespace {

// This will crash a PPP_Messaging function.
void CrashViaExitCall() {
  printf("--- CrashViaExitCall\n");
  _exit(0);
}

}  // namespace

void SetupTests() {
  RegisterTest("CrashViaExitCall", CrashViaExitCall);
}

void SetupPluginInterfaces() {
  // none
}

Add include for unistd.h for _exit. Otherwise, the exit test won't build w/ pnacl.
Add include for unistd.h for _exit.
Otherwise, the exit test won't build w/ pnacl.

R= polina@google.com,dspringer@google.com
BUG=
TEST= ./scons platform=x86-32 bitcode=1 run_ppapi_crash_browser_test

Review URL: http://codereview.chromium.org/7453063

git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@6282 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
