llvm/llvm/unittests/Support/SignalsTest.cpp

//===-- llvm/unittest/Support/SignalsTest.cpp - Signals unit tests --------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// This file contains unit tests for Signals.cpp and Signals.inc.
///
//===----------------------------------------------------------------------===//

#include "llvm/Support/Signals.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/Config/config.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

usingnamespacellvm;
usingnamespacellvm::sys;
MatchesRegex;
Not;

#define TAG_BEGIN
#define TAG_END
// %p in the Symbolizer Markup Format spec
#define P_REGEX
// %i in the Symbolizer Markup Format spec
#define I_REGEX

#if defined(HAVE_BACKTRACE) && ENABLE_BACKTRACES &&                            \
    (defined(__linux__) || defined(__FreeBSD__) ||                             \
     defined(__FreeBSD_kernel__) || defined(__NetBSD__))
TEST(SignalsTest, PrintsSymbolizerMarkup) {}

TEST(SignalsTest, SymbolizerMarkupDisabled) {}

#endif // defined(HAVE_BACKTRACE) && ...