Implement raise() with getcontext() / setcontext()

This commit is contained in:
Justine Tunney 2023-11-05 17:52:30 -08:00
parent dd83db9567
commit 736fdb757a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
12 changed files with 73 additions and 97 deletions

View file

@ -116,3 +116,8 @@ TEST(poll, interrupt) {
ASSERT_TRUE(gotsig);
ASSERT_TRUE(didit);
}
TEST(raise, zero) {
ASSERT_SYS(0, 0, raise(0));
ASSERT_SYS(EINVAL, -1, raise(-1));
}