test: Add testcase for #1111

Refs: #1111
Change-Id: Ifdf25a9ce98ef495200daf1c24d7ac2c81b3ef17
This commit is contained in:
Ken Sato
2018-06-27 23:12:43 +09:00
committed by Masamichi Takagi
parent 04e54ead5d
commit c6cc0bf07a
10 changed files with 437 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
*** RT_001 start *******************************
TEST_SUITE: rt_sigaction
TEST_NUMBER: 5
ARGS:
sigaction(-1) = -1 (errno=22)
sigaction(65) = -1 (errno=22)
sigaction(9) = -1 (errno=22)
sigaction(19) = -1 (errno=22)
RESULT: ok
*** RT_001: PASSED
*** CT_001 start *******************************
[OK] sigaction with SA_RESETHAND
[OK] sigaction to get current action
[OK] check current act
*** CT_001 PASSED
*** CT_002 start *******************************
[OK] sigaction with SA_RESETHAND
send 1st SIGUSR1
[OK] invoked test_handler
[OK] sigaction to get current action
[OK] check current act (after reset)
*** CT_002 PASSED
*** CT_003 start *******************************
[OK] sigaction 0 failed
[OK] sigaction _NSIG failed
[OK] sigaction SIGKILL failed
[OK] sigaction SIGSTOP failed
*** CT_003 PASSED
*** CT_004 start *******************************
[OK] sigaction to get SIGKILL action
[OK] check SIGKILL act
[OK] sigaction to get SIGSTOP action
[OK] check SIGSTOP act
*** CT_004 PASSED
*** CT_005 start *******************************
[OK] SIGUSR1 is valid
[OK] SIGKILL is valid
[OK] SIGSTOP is valid
[OK] _NSIG is invalid
*** CT_005 PASSED