finalize_process(). The process of making a child process zombie and the process of setting the parent of the child process to process ID 1 are excluded. Refs: #1257 Change-Id: Ic95d4d8ee92d6a4a63847e5eda20ec1ba92566ac
154 lines
3.3 KiB
Plaintext
154 lines
3.3 KiB
Plaintext
Script started on Tue Jan 29 09:56:27 2019
|
|
bash-4.2$ make test
|
|
sh ./C1201.sh
|
|
C1201T01 START
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
..........
|
|
|
|
C1201T01: OK
|
|
fork01 1 TPASS : fork() returned 12252
|
|
fork01 2 TPASS : child pid and fork() return agree: 12252
|
|
*** C1201T02: fork01 OK (2)
|
|
fork02 0 TINFO : Inside parent
|
|
fork02 0 TINFO : Inside child
|
|
fork02 0 TINFO : exit status of wait 0
|
|
fork02 1 TPASS : test 1 PASSED
|
|
*** C1201T03: fork02 OK (1)
|
|
fork03 0 TINFO : process id in parent of child from fork : 12402
|
|
fork03 1 TPASS : test 1 PASSED
|
|
*** C1201T04: fork03 OK (1)
|
|
fork04 1 TPASS : Env var TERM unchanged after fork(): xterm
|
|
fork04 2 TPASS : Env var NoTSetzWq unchanged after fork(): getenv() does not find variable set
|
|
fork04 3 TPASS : Env var TESTPROG unchanged after fork(): FRKTCS04
|
|
*** C1201T05: fork04 OK (3)
|
|
fork07 0 TINFO : Forking 100 children
|
|
fork07 0 TINFO : Forked all 100 children, now collecting
|
|
fork07 0 TINFO : Collected all 100 children
|
|
fork07 1 TPASS : 100/100 children read correctly from an inheritted fd
|
|
*** C1201T06: fork07 OK (1)
|
|
fork08 0 TINFO : parent forksval: 1
|
|
fork08 0 TINFO : parent forksval: 2
|
|
fork08 0 TINFO : exit status of wait expected 0 got 0
|
|
fork08 1 TPASS : parent test PASSED
|
|
fork08 0 TINFO : second child got char: b
|
|
fork08 1 TPASS : Test passed in childnumber 2
|
|
fork08 0 TINFO : exit status of wait expected 0 got 0
|
|
fork08 2 TPASS : parent test PASSED
|
|
fork08 0 TINFO : exit status of wait expected 0 got 0
|
|
fork08 3 TPASS : parent test PASSED
|
|
fork08 0 TINFO : Number of processes forked is 2
|
|
*** C1201T07: fork08 OK (4)
|
|
fork09 0 TINFO : OPEN_MAX is 1024
|
|
fork09 0 TINFO : first file descriptor is 12
|
|
fork09 0 TINFO : Parent reporting 1023 files open
|
|
fork09 0 TINFO : Child opened new file #1023
|
|
fork09 1 TPASS : test 1 PASSED
|
|
*** C1201T08: fork09 OK (1)
|
|
fork10 0 TINFO : fork child A
|
|
fork10 1 TPASS : test 1 PASSED
|
|
*** C1201T09: fork10 OK (1)
|
|
fork11 1 TPASS : fork test passed, 100 processes
|
|
*** C1201T10: fork11 OK (1)
|
|
bash-4.2$ exit
|
|
exit
|
|
|
|
Script done on Tue Jan 29 14:27:41 2019
|