/
GitCaptain
/
llvm-project
Обзор
Документация
Войти
/
GitCaptain
/
llvm-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
fix-tests
libc/test/src/stdlib/abort_test.cpp
18 строк
698 B
Michael Jones
[libc][NFC] Add a death test API adaptation macro
01 фев 2021, 22:19
01 фев 2021, 22:19
c73c23f
Код
Авторство
О чём код?
//===-- 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(LlvmLibcStdlib, abort) { // -1 matches against any signal, which is necessary for now until // __llvm_libc::abort() unblocks SIGABRT. EXPECT_DEATH([] { __llvm_libc::abort(); }, WITH_SIGNAL(-1)); }