blob: d5eec4b6ecf38ae765ec5e8b6f53b9f43ad21e5c [file] [log] [blame] [edit]
//===-- Unittests for abort -----------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#include "include/signal.h"
#include "include/stdlib.h"
#include "src/stdlib/abort.h"
#include "utils/UnitTest/Test.h"
TEST(Stdlib, abort) {
// -1 matches against any signal, which is necessary for now until
// __llvm_libc::abort() unblocks SIGABRT.
EXPECT_DEATH([] { __llvm_libc::abort(); }, -1);
}