1 //===-- flang/unittests/Runtime/CrashHandlerFixture.h -----------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 /// Test fixture registers a custom crash handler to ensure death tests fail
10 /// with expected message.
12 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_FLANG_UNITTESTS_RUNTIMEGTEST_CRASHHANDLERFIXTURE_H
14 #define LLVM_FLANG_UNITTESTS_RUNTIMEGTEST_CRASHHANDLERFIXTURE_H
15 #include <gtest/gtest.h>
17 struct CrashHandlerFixture
: testing::Test
{