1*5d2baa95SAlex Brachet //===----------------------- Unittests for raise --------------------------===// 2*5d2baa95SAlex Brachet // 3*5d2baa95SAlex Brachet // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*5d2baa95SAlex Brachet // See https://llvm.org/LICENSE.txt for license information. 5*5d2baa95SAlex Brachet // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*5d2baa95SAlex Brachet // 7*5d2baa95SAlex Brachet //===----------------------------------------------------------------------===// 8*5d2baa95SAlex Brachet 9*5d2baa95SAlex Brachet #include "include/signal.h" 10*5d2baa95SAlex Brachet #include "src/signal/raise.h" 11*5d2baa95SAlex Brachet #include "utils/UnitTest/Test.h" 12*5d2baa95SAlex Brachet 13*5d2baa95SAlex Brachet TEST(SignalTest, Raise) { 14*5d2baa95SAlex Brachet // SIGCONT is ingored unless stopped, so we can use it to check the return 15*5d2baa95SAlex Brachet // value of raise without needing to block. 16*5d2baa95SAlex Brachet EXPECT_EQ(__llvm_libc::raise(SIGCONT), 0); 17*5d2baa95SAlex Brachet } 18