[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / libc / test / src / stdlib / abort_test.cpp
blob8c5fd0c97abbc06516baa33b767ff6a4f9460718
1 //===-- Unittests for abort -----------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 #include "src/stdlib/abort.h"
10 #include "test/UnitTest/Test.h"
12 #include <signal.h>
14 TEST(LlvmLibcStdlib, abort) {
15 // -1 matches against any signal, which is necessary for now until
16 // LIBC_NAMESPACE::abort() unblocks SIGABRT.
17 EXPECT_DEATH([] { LIBC_NAMESPACE::abort(); }, WITH_SIGNAL(-1));