mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-06 14:41:02 +00:00
Implement raise() with getcontext() / setcontext()
This commit is contained in:
parent
dd83db9567
commit
736fdb757a
12 changed files with 73 additions and 97 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue