1 // Copyright 2014 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.
8 #include "sandbox/linux/tests/unit_tests.h"
14 const int kExpectedExitCode = 42;
16 SANDBOX_DEATH_TEST(UnitTests,
18 DEATH_EXIT_CODE(kExpectedExitCode)) {
19 exit(kExpectedExitCode);
22 const int kExpectedSignalNumber = SIGKILL;
24 SANDBOX_DEATH_TEST(UnitTests,
26 DEATH_BY_SIGNAL(kExpectedSignalNumber)) {
27 raise(kExpectedSignalNumber);
32 } // namespace sandbox