(1) Check if rlim's address is valid (2) Check if soft-limit does not exceed hard-limit Fujitsu: POSTK_DEBUG_TEMP_FIX_3 Refs: #1050 Change-Id: I5bf1008ce172f9dff64ec89b1f97614926abaf13
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
*** RT_001 start *******************************
|
|
TEST_SUITE: setrlimit
|
|
TEST_NUMBER: 15
|
|
ARGS:
|
|
setrlimit() = -1, errno = 22
|
|
RESULT: ok
|
|
*** RT_001: PASSED
|
|
|
|
*** CT_001 start *******************************
|
|
[OK] getrlimit cur:3eb1e max:3eb1e
|
|
[OK] setrlimit cur:3eb14 max:3eb14 returned 0 (expect return is 0)
|
|
[OK] errno after setrlimit :0 (expect error is 0)
|
|
[OK] getrlimit cur:3eb14 max:3eb14 (expect max is 3eb14)
|
|
*** CT_001 PASSED
|
|
|
|
*** CT_002 start *******************************
|
|
[OK] getrlimit cur:3eb1e max:3eb1e
|
|
[OK] setrlimit cur:3eb1e max:3eb28 returned 0 (expect return is 0)
|
|
[OK] errno after setrlimit :0 (expect error is 0)
|
|
[OK] getrlimit cur:3eb1e max:3eb28 (expect max is 3eb28)
|
|
*** CT_002 PASSED
|
|
|
|
*** CT_003 start *******************************
|
|
[OK] getrlimit cur:c8000 max:c8000
|
|
[OK] setrlimit cur:c7ff6 max:c7ff6 returned 0 (expect return is 0)
|
|
[OK] errno after setrlimit :0 (expect error is 0)
|
|
[OK] getrlimit cur:c7ff6 max:c7ff6 (expect max is c7ff6)
|
|
*** CT_003 PASSED
|
|
|
|
*** CT_004 start *******************************
|
|
[OK] getrlimit cur:c8000 max:c8000
|
|
[OK] setrlimit cur:c8000 max:c800a returned 0 (expect return is 0)
|
|
[OK] errno after setrlimit :0 (expect error is 0)
|
|
[OK] getrlimit cur:c8000 max:c800a (expect max is c800a)
|
|
*** CT_004 PASSED
|