Home | History | Annotate | Download | only in crash
      1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include <unistd.h>
      6 
      7 #include "native_client/src/shared/platform/nacl_check.h"
      8 #include "ppapi/native_client/tests/ppapi_test_lib/test_interface.h"
      9 
     10 namespace {
     11 
     12 // This will crash a PPP_Messaging function.
     13 void CrashViaExitCall() {
     14   printf("--- CrashViaExitCall\n");
     15   _exit(0);
     16 }
     17 
     18 }  // namespace
     19 
     20 void SetupTests() {
     21   RegisterTest("CrashViaExitCall", CrashViaExitCall);
     22 }
     23 
     24 void SetupPluginInterfaces() {
     25   // none
     26 }
     27