sched_getaffinity: Check arguments in the same order as in Linux
(1) Check if size is large enough (2) Check if size is positive Fujitsu: POSTK_DEBUG_TEMP_FIX_5 Refs: #1121 Change-Id: I3e41720c89ef89294820f7f4fa8df1a69a7011b0
This commit is contained in:
committed by
Dominique Martinet
parent
11756d96ef
commit
e7b6a3472b
35
test/issues/1121/result.log
Normal file
35
test/issues/1121/result.log
Normal file
@@ -0,0 +1,35 @@
|
||||
*** RT_001 start *******************************
|
||||
TEST_SUITE: sched_setaffinity
|
||||
TEST_NUMBER: 0
|
||||
ARGS: -p 20
|
||||
RESULT: ok
|
||||
*** RT_001: PASSED
|
||||
|
||||
*** RT_002 start *******************************
|
||||
TEST_SUITE: sched_setaffinity
|
||||
TEST_NUMBER: 1
|
||||
ARGS: -p 20
|
||||
RESULT: ok
|
||||
*** RT_002: PASSED
|
||||
|
||||
*** RT_003 start *******************************
|
||||
TEST_SUITE: sched_getaffinity
|
||||
TEST_NUMBER: 3
|
||||
ARGS: -p 20
|
||||
sched_getaffinity result:-1, errno:3 (expect error is "ESRCH"=3)
|
||||
RESULT: ok
|
||||
*** RT_003: PASSED
|
||||
|
||||
*** RT_004 start *******************************
|
||||
TEST_SUITE: sched_getaffinity
|
||||
TEST_NUMBER: 5
|
||||
ARGS: -p 20
|
||||
RESULT: ok
|
||||
*** RT_004: PASSED
|
||||
|
||||
*** LT_001 start *******************************
|
||||
sched_setaffinity01 1 TPASS : expected failure with 'Bad address'
|
||||
sched_setaffinity01 2 TPASS : expected failure with 'Invalid argument'
|
||||
sched_setaffinity01 3 TPASS : expected failure with 'No such process'
|
||||
sched_setaffinity01 4 TPASS : expected failure with 'Operation not permitted'
|
||||
*** LT_001: PASSED (ok:4)
|
||||
Reference in New Issue
Block a user